cronjob files?

thephantom

Verified User
Joined
Dec 29, 2003
Messages
22
hello,

when users run an cronjob on the server that points for example:

wget http://domain/script.php

the system place script.php files in the root of the domain. is there an way that these files don't be placed? it looks that these files has the html code the script generates?

thnx :)
 
Hello,

You could use "curl" instead of wget. Curl just spits out the contents returned.

eg:

/usr/bin/curl http://domain.com/script.php 1> /dev/null 2> /dev/null

The "1> /dev/null 2> /dev/null" will just suppress the output if you don't want it emailed to you.

John
 
Back
Top