postprefix
5/23/2011 - 11:30 AM

wget-list: manage the list of downloaded files

wget-list: manage the list of downloaded files

#!/bin/sh
# wget-list: manage the list of downloaded files

# invoke wget-list without arguments

# http://www.linux.com/feature/59457
# http://ubuntuforums.org/showthread.php?t=672074
# http://www.lifehack.org/articles/lifehack/make-your-idle-computer-work-for-you.html
# http://decafbad.net/projects/scripts
# http://www.google.co.in/search?q=wget+queue&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-US:unofficial&client=firefox-a

while [ `find .wget-list -size +0` ]
do
    url=`head -n1 .wget-list`
    wget -c $url
    # wget -c --limit-rate=50k $url
    sed -si 1d .wget-list
done