View Full Version : How to suppress the cron report when activating a php file.

03-09-2008, 06:35 AM
I need to use wget with the cron to activate a .php file and have tried everything to suppress the file that gets written to the root directory.. actually its written above the root above the /public_html

I found that wget -q will shut off email notification.
I found that -delete-after will delete the file after download.

But nothing seems to work for the file being auto generated at the root.. and I have to go there and delete several hundred files per day.. I hate to have to build a php script run by a cron to daily delete this garbage.

Can anyone shed some light on this terrible problem?


03-09-2008, 07:51 AM
Try adding " > /dev/null 2>&1" to the end of your wget shell command. (Example (http://virtuelvis.com/archives/2005/04/script-output-bitbucket))

03-09-2008, 12:28 PM
can you not use the PHP cli version?
just run php /home/you/public_html/yourfile.php