Monday, November 28, 2011

Using wget on a virtual Linux machine to download files from a website

A colleague sent out an email today about using wget to download our latest builds.

We run on Macbook Pros and connect to a lot of virtual servers, whether it be Windows 2008 or Linux Enterprise machines.

Since files testing application environments need to be similar - if not identical - then we need to duplicate local environments to remote VM instances.

I've used wget in the past sparingly but will use it more since now I can download files directly on the command-line from our local Hudson build server.

Here's the command:

wget --no-check-certificate "path to file from http:// to file extension"

Note the --no-check-certificate. Since we connect to a build server that uses SSL and the certificate is self-signed we need to add that to make the copy work.

Cool stuff.