Re: Crontab doesn't run jobs



Dan Espen ha scritto:
VP <telodico@xxxxxxx> writes:

Dan Espen ha scritto:
Has anyone asked you to verify that crond is running?
Run this command, looking for this result:
my sys> ps -ef | grep [c]rond
root 2230 1 0 Nov26 ? 00:00:00 crond

yes, mine result

> ps -ef | grep crond

root 2879 2748 0 19:00 tty 00:00:00 grep crond

You should be able to see messages from CROND in /var/log/messages:
my sys> grep -i crond /var/log/messages

in mine there are no messages by with crond

Right as another poster said, the above shows crond is not running.

Do this now:

service crond status

Post result.

You can also try:

service crond restart
service crond status

Post that result too.


i thought it was running because i tried

/etc/init.d/cron start

and it rightly gives me error. if i try with stop or restart it seems to respond ok.

if i do

> if i give the /etc/init.d/cron stop

and give the previous command without final 'd'

> ps -ef | grep cron

i get:

root 2774 2745 0 19:38 tty 00:00:00 grep cron

then if i give the

> /etc/init.d/cron start

and again

> ps -ef | grep cron

i get

root 2777 1 0 19:38 ? 00:00:00 grep /usr/sbin/cron
root 2783 2745 0 19:38 tty 00:00:00 grep cron

what can mean that "?" ?
.