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
Peter_EMC
674 Posts
0
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
rwanito
2 Posts
0
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