#!/bin/csh -f # keeps trying to pull down a file from a busy site # K. Inscoe - Nov 14, 2002 #ftp://ftp.sunfreeware.com/pub/freeware/sparc/2.6/sudo-1.6.6-sol26-sparc-local.gz # parse URL from file name set url = `echo $1` set file = `echo $url | cut -d: -f2` set file = `echo $file | awk -F/ '{ print $NF }'` echo "Attemping download of $file...`date`" /usr/local/bin/wget $url top: if ( -e $file ) then echo "Download of $url completed at `date`" echo " " ls -l $file else echo "sleeping for 5 minutes...`date`" sleep 300 /usr/local/bin/wget $url goto top endif