--- get-new.sh 2003/09/09 08:19:50 1.5 +++ get-new.sh 2003/09/29 09:38:54 1.6 @@ -1,6 +1,8 @@ #!/bin/sh -cd /home/dpavlin/nn +dir=/home/dpavlin/nn + +cd $dir wget -O - http://www.nn.hr/sluzbeni-list/sluzbeni/PregledB.asp?god=`date +%Y` 2>/dev/null | grep CijeliBrojS | cut -d\" -f2 | sed 's,../../,http://www.nn.hr/,' > in-$$ out=`wget -i in-$$ -nc 2>&1 | grep saved` @@ -8,5 +10,8 @@ if [ ! -z "$out" ] ; then # ./find4.pl - cd swish && swish-e -c nn.conf -S prog + cd $dir/swish && swish-e -c nn.conf -S prog + $dir/sluzbeno/update.sh + cd $dir/swish && swish-e -c sluzbeno.conf -S fs fi +