/[webpac]/trunk2/run.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

Annotation of /trunk2/run.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 86 - (hide annotations)
Fri Jul 11 20:58:06 2003 UTC (20 years, 8 months ago) by dpavlin
Original Path: trunk/run.sh
File MIME type: application/x-sh
File size: 421 byte(s)
run wget only weekly

1 dpavlin 15 #!/bin/sh
2    
3 dpavlin 86 dir=`dirname $0`
4     if [ "$dir" == "." ] ; then
5     dir=`pwd`
6     fi
7 dpavlin 68
8 dpavlin 86 week=`date +%Y%w`
9     last_week=`cat $dir/.week 2>/dev/null || echo 'none'`
10 dpavlin 68
11 dpavlin 86 # do EBSCO update once a week
12     if [ "$week" != "$last_week" ] ; then
13     cd /data/isis_data/ebsco-marc
14     # wget -m -nH -i in
15     echo "$week" > $dir/.week
16     else
17     echo "EBSCO already updated this week..."
18     fi
19    
20     cd $dir
21    
22 dpavlin 81 ( ./all2xml.pl | swish-e -S prog -c swish_isis.conf ) 2>&1 | tee log
23 dpavlin 15

Properties

Name Value
cvs2svn:cvs-rev 1.4
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26