Skip to content
Advertisement

Shellscript If statement returns error

I am trying to check if a file is older than 5 minutes and if that is the case I want to call another shell script which sends me a mail.

check_file.sh:

JavaScript

Error output: 3: ./check_file.sh: [1]: not found

Advertisement

Answer

Try something like:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement