Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.
if [ -s $DLBASKET]; then cat $DLBASKET | ( while read url ; do # First, check the cache if the file has been already downloaded if grep -i $(basename $url) "$CACHEFILE" >/dev/null 2>&1; then echo "$DATETIME File exists in cache. Already downloaded - Skipping: $url" echo $url >> $LOGFILE else echo "$DATETIME Starting: $url" if [ $(expr match "$url" '[rapidshare.com]') = 1 ] ; then # If it is a Rapidshare.com link, load the RS cookie echo "RAPIDSHARE LINK" wget -c -t 1 --directory-prefix=$DLDIR --load-cookies $RSCOOKIE $url else wget -c -t 1 --directory-prefix=$DLDIR $url fi echo "$DATETIME Finished: $url" echo $DATETIME $url >> $LOGFILE echo $url >> $CACHEFILE echo "All Files have been downloaded, clearing Download Basket" echo "Finished!" fi done ) else echo "There are no URLS in $DLBASKET" fi exit 0
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
8 Experts available now in Live!