#!/bin/bash
#
# Simple wrapper script to send notification e-mail when process is complete.
# Add this variable to .profile with your email address
# export PYLORUS_MAIL="myemail@stanford.edu"

for i in ingest1 ingest2 ingest3 ingest4
do
$(dirname "$0")/../../bulk_add/bin/bulk_add $i.clockss.org 8081 $*
# Use sleep command for debug.
#sleep 5
done

# Use mailx to send a notification.
if [ "x$PYLORUS_MAIL" != "x" ]
then 
echo "$USER: Job: $* on $HOSTNAME at $PWD" | mailx -s "Job Complete" ${PYLORUS_MAIL}
fi
exit 0


#!/bin/bash
#
# Simple wrapper script to send notification e-mail when process is complete.
# Add this variable to .profile with your email address
# export PYLORUS_MAIL="myemail@stanford.edu"

for i in ingest1 ingest2 ingest3 ingest4
do
$(dirname "$0")/../bulk_add/bin/bulk_add $i.clockss.org 8081 $*
# Use sleep command for debug.
#sleep 5
done

# Use mailx to send a notification.
if [ "x$PYLORUS_MAIL" != "x" ]
then 
echo "$USER: Job: $* on $HOSTNAME at $PWD" | mailx -s "Job Complete" ${PYLORUS_MAIL}
fi
exit 0


Fix up path to bulk_add directory -- remove one set of '../'
Fix up path to bulk_add directory -- remove one set of '../'


git-svn-id: 293778eaa97c8c94097d610b1bd5133a8f478f36@14419 4f837ed2-42f5-46e7-a7a5-fa17313484d4
