Debugging cron job without shell access

espertus

New member
Joined
Jul 2, 2006
Messages
2
I'm able to run a PHP script through my browser (http://domain.com/cron.php) but not through crontab. I set up the following cron job:

/usr/local/bin/php /home/user/domains/domain.com/public_html/cron.php

It does not appear to run through cron. I've seen great advice on this forum on how to debug cron problems, but they assume you have shell access, which I don't. I'd particularly like to see the cron log, but I don't see a way of doing that through DA.

Any advice?
 
Pipe your command into the mail program like this:

Code:
/usr/local/bin/php /home/user/domains/domain.com/public_html/cron.php | /usr/bin/mail -s 'subject' [email][email protected][/email]
 
Thanks for the suggestion. I tried it, but I received no email. I also tried adding a touch command, and that had no effect. Looks like I need to ask my admin whether cron is running.
 
Back
Top