Cron Email Output from wget
Posted by: Mothman
Posted on: 2009-09-18 10:15:00
Hello,
I successfully set up my cron job. I went for :
* * * * * wget -q --delete-after http://yourdomain.com/path-to-php-script.php
Because when using:
* * * * * /dh/cgi-system/php5.cgi /home/youruser/yourdomain.com/path-to-php5-script.php
The script couldn't connect to MySQL.
However in the email response from the cron I wanted to get the output of the script. This was working with CGI but not wget. Is there any way to do it? I tried removing the -q param, but that just sends the http connection process details.
Thanks a lot!