674 Posts

November 5th, 2014 22:00

crontab commands are executed without environment variables.

The error, your script will produce in crontab would be helpful, f.e. redirect the stderr into your output file (2>&1).

My first guess is, you are missing is the NAS_DB variable, it is not set when executed by crontab, but set when executed in your shell, because it will bet set during the login as nasadmin

2 Posts

November 6th, 2014 01:00


Thanks Peter
I've added the export NAS_DB=/nas in my shell script, and it's works now
Thanks for your support

No Events found!

Top