I have a cronjob that does not execute when scheduling.
As far as I know cron does not care about comment lines. There should be no need of having a trailing comment line. But maybe a particular cron version had a bug which made it ignore the last crontab line unless it was ended by a proper linefeed?3-) Notice the empty remark at the end, I read somewhere that it takes an empty line at the end.
/var/log/syslog should hold entries about all cron activities.Where in the logs can I see if cron returns an error ?
54 7 * * 0,6 /home/patrick/Scripts/script01 > /home/patrick/Scripts/script01.log 2>&1
55 7 * * 0,6 /home/patrick/Scripts/script02 > /home/patrick/Scripts/script02.log 2>&1
56 7 * * 0,6 /home/patrick/Scripts/script03 > /home/patrick/Scripts/script03.log 2>&1
*/5 * * * * php -f /var/www/html/cj/email1.php >/dev/null 2>&1
karlchen wrote:.... It may be a good idea to source the user's .bashrc file in any script which is executed by cron in order to make sure the proper user environment gets loaded. ....
r00t@rc ~ $ source ~/.bashrc; echo $TEST
r00t@rc ~ $
Users browsing this forum: No registered users and 1 guest