Welcome to madhatt.com

A Simple website from a computer geek in Colorado with dreams of moving to Alaska

My Travels Photo Gallery

How to download a file over and over with Linux

So Lets say that you have a website that you want to download a specific file from.

over... and over.... and over.... with no end in site..

Why would you want to do this?  I don't know perhaps to run up someone's bandwidth bill.. or perhaps to load test your system by running this script on many clients.

rm -rvf /tmp/*
cd /tmp/
while [ "forever" ]
wget  http:/file_you_want_to_download.zip;
rm -rvf /tmp/*;
let count=$count+1
echo Downloaded $count times