Advertisement
Guest User

Untitled

a guest
Mar 20th, 2011
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.44 KB | None | 0 0
  1. #!/bin/bash
  2. # you might want to clean the hotlist of \r before.
  3. if [ ! "$1" ]; then echo "Usage: spaceinvader.sh \"HOTLIST\""; exit 1; fi
  4.  
  5. for each in `cat "$1"`; do
  6.         while [ `pgrep wget | wc -l` -ge 50 ]; do sleep 1; done
  7.         wget -nv --page-requisites --continue --convert-links -m -H -D "$each,wlxrs.com,storage.msn.com,msecnd.net" --user-agent="Googlebot/2.1 (+ http://www.googlebot.com/bot.html)" -e robots=off "$each" &
  8. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement