orion@cis # cat weather.sh
#! /bin/bash
WGET=/usr/sfw/bin/wget
URLLIST[1]="http://myxa.sb.ru/files/weather.js"
URLLIST[2]="http://www.meteoinfo.ru/informer/informer.php?ind=28666&type=1&color=39"
URLLIST[3]="http://myxa.sb.ru/pics/weather3.gif"
OUTLIST[1]="/home/orion/default-web-app/weather/weather.js"
OUTLIST[2]="/home/orion/default-web-app/weather/weather.png"
OUTLIST[3]="/home/orion/default-web-app/weather/weather3.gif"
for (( i=1; i<=${#OUTLIST[@]}; i=i+1 ))
do
rm ${OUTLIST[$i]};
$WGET -N --continue ${URLLIST[$i]} --output-document=${OUTLIST[$i]};
done
#! /bin/bash
WGET=/usr/sfw/bin/wget
URLLIST[1]="http://myxa.sb.ru/files/weather.js"
URLLIST[2]="http://www.meteoinfo.ru/informer/informer.php?ind=28666&type=1&color=39"
URLLIST[3]="http://myxa.sb.ru/pics/weather3.gif"
OUTLIST[1]="/home/orion/default-web-app/weather/weather.js"
OUTLIST[2]="/home/orion/default-web-app/weather/weather.png"
OUTLIST[3]="/home/orion/default-web-app/weather/weather3.gif"
for (( i=1; i<=${#OUTLIST[@]}; i=i+1 ))
do
rm ${OUTLIST[$i]};
$WGET -N --continue ${URLLIST[$i]} --output-document=${OUTLIST[$i]};
done
Комментариев нет:
Отправить комментарий