1 |
#!/bin/sh |
#!/bin/sh |
2 |
|
|
3 |
cd /home/dpavlin/nn |
dir=/home/dpavlin/nn |
4 |
|
|
5 |
|
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 |
out=`wget -i in-$$ -nc 2>&1 | grep saved` |
out=`wget -i in-$$ -nc 2>&1 | grep saved` |
10 |
|
|
11 |
if [ ! -z "$out" ] ; then |
if [ ! -z "$out" ] ; then |
12 |
# ./find4.pl |
# ./find4.pl |
13 |
cd swish && swish-e -c nn.conf -S prog |
cd $dir/swish && swish-e -c nn.conf -S prog |
14 |
|
$dir/sluzbeno/update.sh |
15 |
|
cd $dir/swish && swish-e -c sluzbeno.conf -S fs |
16 |
fi |
fi |
17 |
|
|