I am calling wget from crontab to periodically call a php script on my site:
wget -q http://mydomain.com/myscript?pa=doscript >/dev/null 2>&1
It works fine, but in the root dir of my webspace each call creates output files called
myscript?pa=doscript
myscript?pa=doscript.1 ...
I tried to supress the output with -q and >/dev/null 2>&1 but obviously it does not work. Why?
Try:
This tells
wgetto save the file to/dev/nullessentially discarding it.See
man wgetand the-Ooption.