- Published: Thursday, 19 January 2012 11:21
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