Click to See Complete Forum and Search --> : Crontab not working :(


SpEsH
06-14-2001, 10:44 AM
Any linux gurus out there who can help me with a cron prob

My current cron looks like this -

0,10,20,30,40,50 * * * * /home/spesh/eggdrop/MusH.botchk >/dev/null 2>&1
0,10,20,30,40,50 * * * * /home/spesh/mofo/Mofo.botchk >/dev/null 2>&1
* 0,6,12,18 * * * /home/spesh/mush/mel/logs/pisg.pl >/dev/null 2>&1
0,10,20,30,40,50 * * * * /home/spesh/seven/borg.botchk >/dev/null 2>&1
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
Read /var/spool/cron/crontab.21294, 4 lines, 282 chars


All the botchk's work just fine but i cant get it to parse the pisg.pl at all. I set it to do it every 6 hrs but it aint working. The path is correct.

any ideas cos i am a bit thick :D

SpEsH
06-14-2001, 10:55 AM
I am a muppet... the path aint rite :(

sorry

SpEsH
06-14-2001, 11:06 AM
ok.. so i am bonkers... it is rite, one of my botchk's is wrong

the correct path to the .pl i am tryin to parse is

/home/spesh/mush/mel/logs/pisg.pl

Craig McPherson
06-14-2001, 03:22 PM
Let me simplify some of this for you...

0,10,20,30,40,50 * * * *

You can change that to this:

*/10 * * * *

* 0,6,12,18 * * *

It looks like you're trying to get it to run once every 6 hours, but that's NOT what that'll doe. It'll run it every minute, but only during hours 0, 6, 12, and 18.

I think what you want is this:

05 */6 * * *

That'll run it at 5 minutes after the hour, during every sixth hour.

I didn't quite get your last couple posts -- is it all working for you now, or is one of those still having problems?