Cron problem !?!

pinooo

Verified User
Joined
Dec 1, 2004
Messages
15
Hi,

I have a problem with Cron under fedora.

I have this line in the etc/cron.d/directadmin_dron

* /5 * * * * env LANG=C /usr/local/mrtg-2/bin/mrtg /home/admin/domains/wa-web.nl/public_html/mrtg/mrtg.cfg

It should update my MRTG, but it does not. When I give the command manual in the # it works..... But not automatic....

Any idea what could be wrong with the crontab ?


Cheers,

Remco
 
Maybe providing the error message from the error logs would help ;)

It would apear that your time settings are incorrect. It should be
Code:
*/5 * * * *
There is not supposed to be a space inbetween the * and /5
 
Code:
*/5 * * * * /usr/local/mrtg-2/bin/mrtg /home/admin/domains/DOMAIN/public_html/MRTG/core/mrtg.cfg

same error, doesnt work

i made
Code:
cat /var/log/syslog | grep mrtg
and every 5mins i got this so i think is working, but, dont update webpage
Code:
Jun 18 16:15:01 Burn /USR/SBIN/CRON[12718]: (root) CMD (root /usr/local/mrtg-2/bin/mrtg /home/admin/domains/DOMAIN/public_html/MRTG/core/mrtg.cfg

if i run
Code:
/usr/local/mrtg-2/bin/mrtg /home/admin/domains/DOMAIN/public_html/MRTG/core/mrtg.cfg

manually, work correctly

any idea?
 
Back
Top