D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG] A shell script




I could do this much more elegantly couldn't I?
Collect 7000 archived emails sequentially named...


#!/bin/sh
cd /data/public/reference/openhealtharchive/

# to get the archives of OpenHealth-list
# like http://www.mail-archive.com/openhealth-list%40minoru-development.com/
msg00007.html


for h in 0 1 2 3 4 5 6 7
 do
  for c in 0 1 2 3 4 5 6 7 8 9
   do
    for t in 0 1 2 3 4 5 6 7 8 9
     do
      for u in 0 1 2 3 4 5 6 7 8 9
       do
         echo msg0$h$c$t$u.html >> getoh.log
         wget --random-wait --no-clobber -w 37 -nd  http://www.mail-archive.com/
openhealth-list%40minoru-development.com/msg0$h$c$t$u.html 
       done   
     done
   done 
 done



-- 
Adrian Midgley                   (Linux desktop)
GP, Exeter
http://www.defoam.net/


--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.



Lynx friendly