Wgett: Download Manager

I’ve mentioned before that I use wget as my download manager. By default, it’s a simple command-line downloader, but if you dig deep into man wget, you’ll find a wealth of options.

Here’s what I have in my .profile (for bash):

#wget and resume any file
wgett()
{
wget --timeout=40 -t inf -c "${1}"
}

Yup, and so that’s why the title is not a typo. I’ve aliased wgett to this cute little function that waits for a timeout of 40s before retrying (but does it indefinitely) and then picks up where it left off. It’s invaluable, and it’s how I survive the Indian Internet.

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s