I have a crontab
that wget
s 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 normalstdout
to go tonull
(i.e. ignore what it usually prints, and instead print the response body).wget http://example.com/page.php -qO-
(That's a capital Oh.) That standard-outputs ONLY the response body. Is that what you wanted?https://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?