Thursday, November 5, 2015

redirect wget output to stdout

wget -O - http://whatever.com/page.php > /dev/null
or, if you want to redirect standard error output also:
wget -O - http://whatever.com/page.php > /dev/null 2>&1
or, for codegolf :-)
wget -O-

No comments:

Post a Comment