logging - running a php script via cron, how can I log any output? -


All in the morning,

I have a PHP script that I am testing, and run fine It seems when I say it to the command line.

Now I want to automate it through the cron, how can I insert a file as a checkpoint in a file?

For example, I have some simple echo commands in the script and I think the output should be displayed in the existing log file (so that it can be rotated automatically)

Thank you,

Greg

Cron command to run:

  / path / to / php -f /path/to/script.php> & Gt; /path/to/logfile.txt  

Comments