CRON abrubtly stoped working

Status
Not open for further replies.

kmarkiv

New Member
Messages
27
Reaction score
0
Points
0
My cron job php /home/kmarkiv/public_html/*****/****.php suddenly stoped working yest and i stopped receiving emails .Please help:(:(:( :(
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
That's almost no information. What happens when you access the script via a browser? Do you get any error messages? What's the command line used for the cron job?
 

dlukin

New Member
Messages
427
Reaction score
25
Points
0
PHP:
<?php

$headers = 'From: abc@abc.x10hosting.com' . "\r\n" .
    'Reply-To: abc@abc.x10hosting.com' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();


$dt = date('l jS \of F Y h:i:s A');
echo $dt ;

$sent = mail(  'abc@gmail.com'  ,  'Subject: PHP Cron/ABC'  ,  "A cron job from ABC using PHP. /n ... $dt", $headers ) ; 



if( sent ){
    echo "Sent .. ";
} else {
    echo "Not sent ...  )";
}

?>

Code:
/usr/bin/php  /home/abc/public_html/mycronjob.php  >>/home/abc/public_html/logthecron.txt  2>&1

Used to work on my friend's account until today on Chopin. Still works on my account on Boru.

And it works fine when called from the web. Mail sent and received.
 
Last edited:

kmarkiv

New Member
Messages
27
Reaction score
0
Points
0
It works fine on the browser ..It was working fine until two days ago.The email i am talking about is set in the C Panel ..which also stopped two days back
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Should be fixed now. Please let us know if your problem continues.
 
Status
Not open for further replies.
Top