Cron Job Not Running

Status
Not open for further replies.

toptrump

New Member
Messages
4
Reaction score
0
Points
0
Hey I got multiple Cron Jobs.
When I run the php script, it works perfectly but when the Cron tries to, it doesn't edit the csv it is ment to output to.

I've tried many commands the latest fo which is:
/usr/local/bin/php /home/toptrump/public_html/weather_update.php

But nothing seems to wont to work, the best I got was two lines before it died.
 
Last edited:

hbazer

Member
Messages
398
Reaction score
7
Points
18
I do not understand what the error is - did the Cron job add two lines to the CVS file or did the Cron job run two times or were your Cron jobs deleted after two runs...... ?

I would add a log file to the job and be sure to add this temp line of code to the PHP script as first line
PHP:
error_reporting(E_ALL);

To add a log file that will be in folder [ public_html ]
Code:
/usr/local/bin/php /home/toptrump/public_html/weather_update.php 2>&1 >> /home/toptrump/public_html/cron_output.log
 
Status
Not open for further replies.
Top