HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Cron job not running (http://www.howtoforge.com/forums/showthread.php?t=60379)

martin5504 30th January 2013 15:15

Cron job not running
 
hi I have a cron job to not work but the 1 minute is, moreover, cron jobs funguju not vcom but this may be a bug? thank you

Quote:

Jan 30 15:10:01 mision555 /USR/SBIN/CRON[22195]: (munin) CMD (if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi)
Jan 30 15:10:01 mision555 /USR/SBIN/CRON[22199]: (root) CMD (php /var/www/RGraphs-master/cron/fetchstats.cron.php)
Jan 30 15:10:01 mision555 /USR/SBIN/CRON[22200]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi)
Jan 30 15:10:01 mision555 /USR/SBIN/CRON[22198]: (root) CMD (php /crons/cpu.php)
Jan 30 15:10:01 mision555 /USR/SBIN/CRON[22201]: (root) CMD (if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ]; then mkdir -p /var/log/mrtg ; env LANG=C /usr/bin/mrtg /etc/mrtg.cfg 2>&1 | tee -a /var/log/mrtg/mrtg.log ; fi)
Jan 30 15:10:01 mision555 /USR/SBIN/CRON[22202]: (root) CMD (/usr/bin/php /var/www/monitoring/cron/status.cron.php)
Jan 30 15:10:01 mision555 /USR/SBIN/CRON[22203]: (root) CMD (php /crons/cron.php)
Jan 30 15:10:01 mision555 /USR/SBIN/CRON[22191]: (CRON) error (grandchild #22199 failed with exit status 255)

*/1 * * * * php /var/www/RGraphs-master/cron/fetchstats.cron.php

till 30th January 2013 15:42

Use the full path to the php binary in cronjobs like /usr/bin/php instead of "php" as the PATH variable is not set in cronjobs.

martin5504 1st February 2013 13:47

Thanks Man


All times are GMT +2. The time now is 12:43.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.