/[formed]/trunk/tools/anonym/cron.importAnonXml.sh
ViewVC logotype

Contents of /trunk/tools/anonym/cron.importAnonXml.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 237 - (show annotations)
Mon Feb 25 15:03:38 2008 UTC (17 years ago) by torsten
File MIME type: application/x-sh
File size: 260 byte(s)
Added script to automate the import auf xml files 

1 #!/bin/sh
2
3 DATADIR=/upload/incoming
4 DBHOST=laodameia
5 DBPORT=5434
6
7 cd ${DATADIR}
8 for XML in `ls *.xml.gz`
9 do
10 DB=`echo ${XML} | awk '{print $1}' FS="-"`
11 echo "importing ${DB}"
12 #zcat ${XML} | xmlimport.py ${DB} ${DBHOST} ${DBPORT}
13 zcat ${XML}
14 rm ${XML}
15 done

Properties

Name Value
svn:executable *

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26