Re: Crontab logs

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Nathan England
Date:  
To: Main PLUG discussion list
Subject: Re: Crontab logs

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 -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss