From: Chris Sharp Date: Fri, 4 Nov 2011 16:58:54 +0000 (-0400) Subject: forgot one X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b562fd72d18d4f700c9ceecf3dfdb4c443820d16;p=evergreen%2Fpines.git forgot one --- 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 +