cronjob will not execute.
I have a script that I am trying to run using cron.
The script works no problem at the terminal. I have tried it in cron.hourly and my crontab, with file ownership as me and root. The file is executable, and the cron log shows something is happening: (myself) CMD (myscript) BUT the file is not being executed I am 100% sure. I don't have any cron/allow or deny lists so it is not that. |
Have you tried using the full path:
/path/to/script You could also try writing a log file: /path/to/script 2>&1 > /var/log/myscript.log |
Hmmmmmmmm.....
After figuring out where my messages are, the crontab daemon informs me that the command I am trying to use in my script cannot be found. I don't understand this. At the command line the command is fine, the PATH is all set up and I have permissions to exectute. :confused: |
Try using the full path.
|
All times are GMT -5. The time now is 03:38 AM. |