PDA

View Full Version : cronjob files?



thephantom
06-28-2004, 06:48 AM
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 :)

DirectAdmin Support
06-28-2004, 09:23 AM
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

thephantom
08-07-2004, 06:50 AM
ok thnx works perfect :)