4 |
|
|
5 |
cd $dir |
cd $dir |
6 |
|
|
7 |
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-$$ |
#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-$$ |
8 |
|
wget -O - "http://www.nn.hr/pretrazivanje/sluzbeno/pregled2.asp?godina=`date +%Y`&period=5" 2>/dev/null | grep pregled.asp | cut -d\" -f8 | sed 's#pregled.asp#http://www.nn.hr/pretrazivanje/sluzbeno/pregled.asp#g' > in-$$ |
9 |
|
|
10 |
out=`wget -i in-$$ -nc 2>&1 | grep saved` |
out=`wget -i in-$$ -nc 2>&1 | grep saved` |
11 |
rm in-$$ |
rm in-$$ |
12 |
|
|
13 |
if [ ! -z "$out" ] ; then |
if [ ! -z "$out" ] ; then |
14 |
# ./find4.pl |
#./find4.pl |
15 |
cd $dir/swish && swish-e -c nn.conf -S prog |
cd $dir/swish && swish-e -c nn.conf -S prog |
16 |
$dir/sluzbeno/update.sh |
$dir/sluzbeno/update.sh |
17 |
cd $dir/swish && swish-e -c sluzbeno.conf -S fs |
cd $dir/swish && swish-e -c sluzbeno.conf -S fs |