Il lun, 2005-05-02 alle 22:22, Ivo Perich ha scritto: > i have this crontab script on my office PC, with Mandrake 10.1 Official: > > SHELL=/bin/bash > PATH=/sbin:/bin:/usr/sbin:/usr/bin > MAILTO=root > HOME=/ > > # run-parts > 01 * * * * root nice -n 19 run-parts /etc/cron.hourly > 02 4 * * * root nice -n 19 run-parts /etc/cron.daily > 22 4 * * 0 root nice -n 19 run-parts /etc/cron.weekly > 42 4 1 * * root nice -n 19 run-parts /etc/cron.monthly > */5 * * * * /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/cfg/mrtg.cfg > * * * * * /usr/bin/php /var/www/html/monitor2/check.php > > it is supposed to execute > "/usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/cfg/mrtg.cfg" every five > minutes and "/usr/bin/php /var/www/html/monitor2/check.php" every minute > > The server is running this script since march, and it works fine still now. > > I copied and pasted the same /etc/crontab file in another server with > mandrake > 10.1 Official and crond doesn't execute de last line every minute...! > > the log file "info" says: > > May 1 04:05:01 lonko CROND[7862]: (root) CMD > (/usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/cfg/mrtg.cfg) > May 1 04:10:00 lonko CROND[8485]: (root) CMD > (/usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/cfg/mrtg.cfg) > May 1 04:14:59 lonko CROND[8750]: (root) CMD > (/usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/cfg/mrtg.cfg) > > etc.... > the "php" line is ignored..... > > is there something wrong or what? > What do you think? i think that php could be not installed in the 2nd server check the 2nd server with
ls -l /usr/bin/php only my 2 cts -- Regards , Francesco
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________
