Download queue script

Posted by: Mo Mughrabi Add comments

This script is one of my fav, am sure there is many times when you wish you could place things in queue & return and see all your files ready. Specially, if you are running a server remotely or if you not using any GUI. This script I usually run in case I have list of large files over the Internet and need to download them without having to set in front of the computer to submit each file.

First, you will need to get all the files in a text file (notepad) here is an e.g

http://kwtlinux.com/file1.zip
http://kwtlinux.com/file2.zip
http://kwtlinux.com/file3.zip
http://kwtlinux.com/file4.zip

Save the the text file an lets call it queue.txt, now you will need to write a small set of command to read from the file and begin downloading.


for i in `cat queue.txt` ## Will loop inside queue.txt and place each line as a value $i
do
wget $i ## wget will download the value $i
sleep 4
done

That's it!

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Login