Cron Wizard

Status
Not open for further replies.

docklist

New Member
Messages
3
Reaction score
0
Points
1
I have a php file that needs to be run in my public_html. I'm using the following code in the cron command field in the cpanel but i'm getting an empty log and expecting an email from the output of my index.php. Can anyone help Thanks

/usr/local/bin/php /home/mydirectory/public_html/index.php 2>&1 >> /home/mydirectory/public_html/cron_output.log
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
1. what I use is:
Code:
/usr/bin/php -q  /home/igor/public_html/sub/foo_test.php >>/home/igor/public_html/sub/foo_test_log.txt 2>&1

2. Cron job must be at least five minutes apart -- ie no one minute crons and no two crons going off four minutes apart.

3. If you mean the email that cPanel says it will send, forget about it. It has been disabled.
 
Status
Not open for further replies.
Top