[nycbug-talk] php scripts from crontab

Dan Langille dan at langille.org
Mon Oct 30 22:26:25 EST 2006


On 30 Oct 2006 at 20:00, Matthew Terenzio wrote:

> 
> Anyone have any experience running PHP scripts from /etc/crontab
> 
> The cron log  shows it's happening but it seems like it's shooting 
> blanks.
> 
> The same command works perfectly when I just run it manually from the 
> command line.
> 
> php /path/to/script/cron.php

Make sure you hit enter at the end of the line in your crontab.

If you doubt it's running, check /var/log/cron and/or put a && touch 
/my/file in there/

-- 
Dan Langille : Software Developer looking for work
my resume: http://www.freebsddiary.org/dan_langille.php





More information about the talk mailing list