From b562fd72d18d4f700c9ceecf3dfdb4c443820d16 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Fri, 4 Nov 2011 12:58:54 -0400 Subject: [PATCH] forgot one --- .../utility-server/scripts/run-collections.sh | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 Open-ILS/examples/pines-examples/utility-server/scripts/run-collections.sh diff --git a/Open-ILS/examples/pines-examples/utility-server/scripts/run-collections.sh b/Open-ILS/examples/pines-examples/utility-server/scripts/run-collections.sh new file mode 100755 index 0000000000..a8497aae70 --- /dev/null +++ b/Open-ILS/examples/pines-examples/utility-server/scripts/run-collections.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +DATE=$(date +%Y-%m-%d); +DIR="collections-$DATE" +LIBS="ARL ECGR NCLS HALL OHOOP HCLS LEE RML SJRLS TLLS DCPL STRL ROCK HOU CRLS SHRL TCPLS TRRL CPRL WORTH PMRLS CLAYTN" +USRNAME="myusername" +PASSWD="mypass" +REMOTE_HOST="sftp.example.com:files/" + +cd ums; +mkdir $DIR + +for lib in $LIBS; do + ./run-calls.pl /openils/conf/opensrf_core.xml $USRNAME $PASSWD $lib + mv data-$lib $DIR/ +done; + +tar cvf $DIR.tar $DIR +gzip $DIR.tar + +echo "scping $DIR.tar.gz..."; +scp $DIR.tar.gz $REMOTE_HOST + -- 2.11.0