Wget: Difference between revisions
From Leo's Notes
This page was last edited on 3 June 2013, at 06:31.
No edit summary |
|||
| Line 22: | Line 22: | ||
== wget on FreeBSD == | == wget on FreeBSD == | ||
wget is available in ports under <code>ftp/wget</code> | wget is available in ports under <code>ftp/wget</code>. If you don't want to compile it, you could just use <code>fetch (1)</code> to download files. | ||
Revision as of 06:31, 3 June 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
Save to Directory
Use the -P to specify the prefix of the output file.
wget -P /tmp http://google.ca/
wget on FreeBSD
wget is available in ports under ftp/wget. If you don't want to compile it, you could just use fetch (1) to download files.