Script to download latest from Julians Site

Ryan Weaver ryanw at falsehope.com
Wed May 17 17:09:55 IST 2006


----Original Message----
From: mailscanner-bounces at lists.mailscanner.info
Sent: Wednesday, May 17, 2006 9:31 AM
To: mailscanner at lists.mailscanner.info
Subject: Re: Script to download latest from Julians Site 

> Lance Haig wrote on Wed, 17 May 2006 08:23:19 +0100:
> 
>> I keep that for the same reason.
> 
> Downloading them thru a dialup link and uploading them 
> thru a dialup link is more likely to break the files than 
> fetch them directly. Not to mention the speed implication. 
> If you do not know about wget run a "man wget" and I think 
> you'll know what most others probably do to get newer
> mailscanner versions.
> 
> Kai
> 

You can try the following (including a uuencoded version to combat wordwrap)
It will download the latest Stable and Beta, but wont download the same files
twice.

#!/bin/sh

SITE='http://www.sng.ecs.soton.ac.uk/mailscanner';
DL_HTML='downloads.shtml';
LOOK_FOR='RPM-based Linux distributions';

for FILE in $(wget -q -O - ${SITE}/${DL_HTML} |  grep "${LOOK_FOR}"  | sed -e
's/^.*href="//g' -e 's/".*$//g'); do
    echo "Getting ${FILE}";
    wget -m -nv -nH -nd ${SITE}/${FILE};
Done

begin 700 get_latest.sh
M(R$O8FEN+W-H"@I3251%/2=H='1P.B\O=W=W+G-N9RYE8W,N<V]T;VXN86,N
M=6LO;6%I;'-C86YN97(G.PI$3%](5$U,/2=D;W=N;&]A9',N<VAT;6PG.PI,
M3T]+7T9/4CTG4E!-+6)A<V5D($QI;G5X(&1I<W1R:6)U=&EO;G,G.PH*9F]R
M($9)3$4@:6X@)"AW9V5T("UQ("U/("T@)'M3251%?2\D>T1,7TA434Q]('P@
M(&=R97`@(B1[3$]/2U]&3U)](B`@?"!S960 at +64@)W,O7BXJ:')E9CTB+R]G
M)R`M92`G<R\B+BHD+R]G)RD[(&1O"B`@("!E8VAO(")'971T:6YG("1[1DE,
M17TB.PH@("`@=V=E="`M;2`M;G8 at +6Y(("UN9"`D>U-)5$5]+R1[1DE,17T[
&"F1O;F4*
`
End



More information about the MailScanner mailing list