Thread: Cron Jobs
View Single Post
Old 09-10-2007, 10:12 AM   #4 (permalink)
admin
Administrator
 
Join Date: Aug 2007
Posts: 52
Default

Hi,

1) The -f just means Parse and execute the file specified, technically its not needed.

2) If on the actual cron command you do:
php somefile.php > operation.log 2>> errors.log

That will put all the output from the script into operation.log and any script errors into errors.log, you can also get it to email you the outputs (which can be setup in cpanel)

3) It depends what the cron does, if it is quite intensive then its always best to run it when your site is at its quietest.

Admin
admin is offline   Reply With Quote