CRONs not working for me on absolut

Status
Not open for further replies.

oleddisplayinfo29

New Member
Messages
4
Reaction score
0
Points
0
Dear Sir,
cron jobs are not at all working for my account.
I have gone through all forum posts and used the following code

/usr/bin/php /home/oledinfo/public_html/oled/Test.php >>/home/oledinfo/public_html/oled/mycronlog.txt 2>&1

or
/usr/bin/php /home/oledinfo/public_html/oled/Test.php

This did not work

php-cron /home/oledinfo/public_html/oled/Test.php >>/home/oledinfo/public_html/oled/mycronlog.txt 2>&1

or

php-cron /home/oledinfo/public_html/oled/Test.php

did not work

I have got the following code in Test.php
<?php
echo "This is a test";
$headers = 'From: oledinfo@oleddisplayinfo.x10hosting.com' . "\r\n" .
'Reply-To: oledinfo@oleddisplayinfo.x10hosting.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();

$sent = mail( 'emailer123@yahoo.com', 'OLED-Info--Subject of this email is-that cron is working', 'The message is', $headers ) ;

if( sent ){
echo "Sent email\n";
} else {
echo "Problem sending email\n";
}


?>


Please suggest help and kindly enable my cron job feature.

Regards,
OInfo.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Currently Absolut is going through a migration to different hardware and a lot of things aren't working properly.

If you can wait a few days the situation should be more stable.

Code:
/usr/bin/php /home/oledinfo/public_html/oled/Test.php >>/home/oledinfo/public_html/oled/mycronlog.txt 2>&1

Should work and log any errors to mycronlog.txt (like /usr/bin/php cannot be found, etc) so you can troubleshoot.
 
Status
Not open for further replies.
Top