I have a crontab that wgets a PHP page every five minutes (just to run some the PHP code), and I want to send the output of the request to standard out, while sending the normal wget output to /dev/null (or otherwise hide it). I couldn't find it in the wget manual.
I'm looking for something like:
wget -o stdout http://whatever.com/page.php > /dev/null
Anyone know?
wget-ed to go to astdout, and the normalstdoutto go tonull(i.e. ignore what it usually prints, and instead print the response body). – Sean Adkinson Dec 31 '14 at 01:24wget http://example.com/page.php -qO-(That's a capital Oh.) That standard-outputs ONLY the response body. Is that what you wanted? – Bob Stein Dec 31 '14 at 04:32https://superuser.com/questions?tab=newest&page=542&pagesize=50): See e.g. How can I download weblinks using wget which do not end with .html? – Peter Mortensen Feb 01 '21 at 14:44