Prajjwal Devkota wrote: > #!/bin/bash > > BASEURL="http://ftp5.gwdg.de/pub/suse/update/10.2/rpm/i586/" > WORKDIR=/usr/local/src/updates/patchrpms/ > > cd $WORKDIR > #get list of rpms from the patch directory > wget -c $BASEURL > #compile a list of patch rpms > awk -Fhref= '/patch.rpm/{print $2}' index.html|awk -F\" '{print > $2}'>list > #and pull rpms > while read line > do > wget -c $BASEURL/$line > done<list > > Let me know if I am doing something the "too long" way round. > > Prajjwal
rsync -av --partial --progress --delete-after rsync://ftp5.gwdg.de/pub/suse/update/10.2/rpm/i586/ /usr/local/src/updates/patchrpms/ should do the same job Chris -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
