added ssh recipient and user vars
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 10 Sep 2006 15:27:10 +0000 (15:27 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 10 Sep 2006 15:27:10 +0000 (15:27 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6049 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/src/support-scripts/eg_gen_overdue.sh

index 1f1f449..e4e7b40 100755 (executable)
@@ -8,11 +8,12 @@
 
 
 
+SSH_CLIENT=$1
+RECIPIENT=$2;
 DATE=$(date +%Y-%m-%d);
 DAY=$(date +%u);
 BSCONFIG="/openils/conf/bootstrap.conf"
 ODDIR="/openils/var/data/overdue";
-#ODDIR="/tmp";
 
 export EG_OVERDUE_EMAIL_TEMPLATE="../extras/overdue_notice_email";
 export EG_OVERDUE_SMTP_HOST="apollo.georgialibraries.org";
@@ -27,4 +28,5 @@ if [ $DAY == 1 ]; then ARGS="2 1 0"; fi; # If today is monday, run for sat/sun/m
 
 echo "RUNNING";
 ./eg_gen_overdue.pl $BSCONFIG $ARGS > "$ODDIR/overdue.$DATE.xml"
+scp "$ODDIR/overdue.$DATE.xml" "${SSH_CLIENT}\@${RECIPIENT}:~/"