PDA

View Full Version : cronjobs don't run



Mausie
07-25-2004, 12:08 AM
I running DA on redhat 9, install clamav, mailscanner, spamassisin. i have tree conjobs and don't work, i get no errors, and see no error in the logs... When i running them from SSH command line, it works good, here are the crons:

php -q -f /home/admin/domains/boschwebservice.nl/public_html/host/include/scripts/generate_invoices_daily.inc.php /home/admin/domains/boschwebservice.nl/public_html/host/ cron 0 0

php -q -f /home/admin/domains/boschwebservice.nl/public_html/host/include/scripts/run_background_batch.inc.php /home/admin/domains/boschwebservice.nl/public_html/host/ cron YUTGFTG5854IS456AQQWD

php -q -f /home/admin/domains/boschwebservice.nl/public_html/host/include/scripts/run_auto_suspend.cron.php /home/admin/domains/boschwebservice.nl/public_html/host/ cron

i h've try in crontab -e, same results, in DA user cronjos same results...

The other cronjobs running okay...

What's wrong?? Please help...

Thanks.

PauGasol
08-08-2004, 03:30 PM
I have similar strange error:rolleyes:

the cron log are ok, the script are executed well from ssh...:o

any ideas? Thanks

Mausie
08-08-2004, 10:41 PM
Try this:

Check your cron logs to make sure its running (/var/log/cron).. also check the user cron list to make sure it's actually added:

crontab -u username -l

set the full path /usr/local/bin/php -q -f /home/admin/..............

this works fine to me

nobaloney
08-09-2004, 08:23 PM
Also, if I may add...

Logged in through a shell, make sure the crond daemon is running:

$ ps waux | grep crond

(Note the $ sign means you don't have to be logged in as root.)

Jeff

janybravo
02-13-2005, 04:31 AM
Hello!

I've got similar problem on freebsd 5.3 box. Cron deamon is running:

ps: root 0:08.47 /usr/sbin/cron -s

Cron command is listed in users crontab and it can be successfully executed from shell. Log also show that it was executed

Feb 13 13:25:00 atapajtl /usr/sbin/cron[282]: (myuser) CMD (wget -q http://cleaning.domain.net/cron.php)

But it acctualy wasn't...

Any suggestions?
Thanks!