Please HELP how to use cronjob

vhadz

New Member
Messages
1
Reaction score
0
Points
0
i want to execute my php script everyday at 12:00:00 midnight using cron job.

here is my command

0 0 * * * /home/myusername/public_html/cron.php

is this correct?

if this format not work what is the correct command?

thanks in advance!!

best regards
vhadz
 
Last edited:

dlukin

New Member
Messages
427
Reaction score
25
Points
0
On Lotus server,

Code:
/usr/bin/php   /home/gremlin/public_html/foo.php >> /home/gremlin/public_html/cronoutput.txt  2>&1

Runs foo.php and sends standard output and error messages into cronoutput.txt.

This way you can put 'echo' statements to help with debugging the script, especially since the automatic email feature of cron jobs does not seem to work.
 
Top