Wget: Difference between revisions
From Leo's Notes
This page was last edited on 15 April 2013, at 05:26.
Created page with "== wget to console == Use the <code>-O -</code> option to output contents to the console. wget -O - http://google.ca Category:Linux Category:FreeBSD" |
|||
| Line 4: | Line 4: | ||
wget -O - http://google.ca | wget -O - http://google.ca | ||
Since the contents go to <code>stdout</code>, you can pipe it to a shell: | |||
wget -O - http://scripthost.local/fix_graphics.sh | sh | |||
[[Category:Linux]] | [[Category:Linux]] | ||
[[Category:FreeBSD]] | [[Category:FreeBSD]] | ||
Revision as of 05:26, 15 April 2013
wget to console
Use the -O - option to output contents to the console.
wget -O - http://google.ca
Since the contents go to stdout, you can pipe it to a shell:
wget -O - http://scripthost.local/fix_graphics.sh | sh