PDA

View Full Version : [ubuntu] Crontab Problem



ahbb
July 28th, 2008, 03:59 PM
Hi there,

Im running pisg on it's all nice and running no problem with the program.

But when i added it to sudo crontab -e and insert this line

*/5 * * * * /root/pisg --silent so that it can run every 5 min to update the stats.

But it just dont update the stats @ all.

What am I doing wrong?

Thanks

Andrew ](*,)

mali2297
July 28th, 2008, 04:18 PM
Try /usr/bin/pisg instead of /root/pisg.

ahbb
July 28th, 2008, 05:03 PM
HI,

Must i remove the --silent as well?

Thanks

Andrew

ahbb
July 28th, 2008, 06:52 PM
The other problem is i cant use /usr bin as I installed it in my root DIR did not know pisg was on ubuntu.

The program run 100% and work when i do it manual, i just want it to update every 5 min with crontab.

Please help.....

Thanks

Andrew

Potatoj316
July 28th, 2008, 06:58 PM
I didnt know you could do */n. It seems everyone has crontab problems.

Try crontab -l to make sure that this line gets put in your crontab

ahbb
July 28th, 2008, 10:17 PM
this is the entry in the crontab

0,5,10,15,20,25,30,35,40,45,50,55 * * * * /root/pisg --silent

But it still dont work let me paste you the log out of the log file.

Jul 28 23:15:01 shells /USR/SBIN/CRON[26419]: (root) CMD (/root/pisg --silent)

BUt it still dont ubdate the stats?

Hope you can help.

Thanks