Error
  • The template for this display is not available. Please contact a Site administrator.

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/
count=0
while [ "forever" ]
do
wget  http:/file_you_want_to_download.zip;
rm -rvf /tmp/*;
let count=$count+1
echo
echo Downloaded $count times
echo
done