Real independence & fink

I was very jazzed when I realized that I could answer my friend’s question with a GNU (GNU’s Not Unix see: http://www.gnu.org) answer. What is so utterly cool about this factoid is that he uses an Apple. OS X is a BSD dirivative, which gives it most of the tools that make *nix such a powerful platform. And oh yea, this trick works on Windows too! I am so happy to see a single simple program that will work on all the PC platforms I know anything about. That’s real platform independence and it is good for users.
The question was, “How do I mirror a web site easily, if I do not have FTP access to the files?” The answer is really quite simple.


wget
As I started this article I was aware that wget is available for the *BSD platform, and thus knew it was possible to at least build it on the OS X. It turns out that as of OS curl. (Another useful tool, but not the answer to my friend’s question, and I am not sure about the status of Apple releases, so I don’t know how current this would be.)
If you use the Mac with OS X (and why wouldn’t you?) and you want easy access to GNU and Unix tools, the solution seems to be “fink”. Anyway, back to the answer for my friend…
Once wget is correctly installed on your machine, open a command prompt. I won’t bother telling Linux users how to do this;
Windows: Start->Run ; type cmd in the edit box, and press OK.
Mac: Open a new Terminal.app window
Use the ‘cd’ command to change directories (folders) until you are where you want to download the files too. Then issue the wget command as shown below. (Example is from Linux, yours may be slightly different on Mac or Windows.)
[sites@willa sites]$ cd /home/sites/DownloadFilesHere
[sites@willa DownloadFilesHere]$ wget -r -nH www.crmenergy.com
–08:51:15– http://www.crmenergy.com/
=> `index.html.1′
Resolving www.crmenergy.com… done.
Connecting to www.crmenergy.com[216.207.143.50]:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 10,444 [text/html]
100%[===============================>] 10,444 9.96M/s ETA 00:00
08:51:15 (9.96 MB/s) – `index.html.1′ saved [10444/10444]
[…]
–08:51:50– http://www.crmenergy.com/media/images/machine.gif
=> `media/images/machine.gif’
Connecting to www.crmenergy.com[216.207.143.50]:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 3,822 [image/gif]
100%[===============================>] 3,822 3.64M/s ETA 00:00
08:51:50 (3.64 MB/s) – `media/images/machine.gif’ saved [3822/3822]
FINISHED –08:51:50–
Downloaded: 357,781 bytes in 66 files
[sites@willa DownloadFilesHere]$

Comments are closed, but trackbacks and pingbacks are open.