Reputation: 14544
I was just looking at our server root and one of our old developers who has left seems to have a cron job running daily which is writing a file every day to the server root.
I had a look at the daily cron jobs and I guess this is the culprit as it's the only wget (the others are PHP scripts which I know run silently):
wget http://www.example.com/?option=com_portal&view=ops&tmpl=component >/dev/null 2>&1
Each day the server root has a file like this written:
-rw-r--r-- 1 root root 11987 May 12 03:45 login.360
-rw-r--r-- 1 root root 11987 May 13 03:45 login.361
-rw-r--r-- 1 root root 11987 May 14 03:45 login.362
-rw-r--r-- 1 root root 11987 May 15 03:45 login.363
A new one for every day. The content of the file is the HTML page source. How can I safely modify the cron job to stop any output like this, until I do some further investigations into removing this cron job altogether?
Upvotes: 0
Views: 1695
Reputation: 4553
My question basically is how can I still request the page but prevent it from outputting it to the server root?
How about making wget
dump the data to /dev/null
?
wget -O/dev/null http://www.example.com/blab
Upvotes: 1