i have a cronjob scheduled which is supposed to update a file. Unfortunately the file doesn't get updated. For this reason I am trying to debug it. In my crontab now I have:
The log file got created but it's empty, and the file which is supposed to be updated by the cronjob is still not updated. What should I do next to debug it? For reference my script basically contains:
if I run the script directly from terminal, it works. |
Your stderr redirect is not correct. You're using " Hope that helps! answered 12 Nov '12, 16:50 seanf Thanks, I am giving it a go! :)
(14 Nov '12, 04:00)
gabon
Ah, I get: /bin/sh: /home/my_user/scripts/my_script.sh: No such file or directory
(14 Nov '12, 04:34)
gabon
And indeed, I had a typo in the script name! :S Thanks!
(14 Nov '12, 04:38)
gabon
|