/[nn.old]/trunk/get-new.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/get-new.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 94 by dpavlin, Mon Sep 29 09:38:54 2003 UTC revision 99 by dpavlin, Tue Feb 22 14:08:00 2005 UTC
# Line 4  dir=/home/dpavlin/nn Line 4  dir=/home/dpavlin/nn
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

Legend:
Removed from v.94  
changed lines
  Added in v.99

  ViewVC Help
Powered by ViewVC 1.1.26