Crontab logs

Nathan England nathan at nmecs.com
Mon Jul 20 15:36:45 MST 2015


Just to be clear, is this a command line php script?

If so, you need to execute it with php first.

36 * * * * php /path/to/script/script.php


If this is a php web page, you need wget or curl to get it
36 * * * * wget http://yourdomain.com/script.php



On 2015-07-20 15:28, Keith Smith wrote:
> Hi,
> 
> I'm on CentOS 6.6 and created a user crontab ( crontabe -e ).  I added
> the line to run a PHP script at 36 after the hour.
> 
> 36 * * * * /path/to/script/script.php
> 
> Had a path wrong so it was failing.
> 
> Was looking in /var/log/cron and it did not show the error.
> 
> What am I missing?
> 
> Thanks!!
> Keith
> 
> 
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss


More information about the PLUG-discuss mailing list