2 # This is meant to be fire-and-forget
3 # Only use it if you trust the output!
4 export DIR=$(readlink -f $(dirname $0))
5 if [ -z "${MAKEOPTS}" ]; then
6 echo "MAKEOPTS env variable is not set"
7 echo "If you really want this to be serialized, export MAKEOPTS=-j1"
8 echo "Otherwise set it about 1.5x your number of CPUs!"
11 [ -z "${T}" ] && export T=$(date -u +%Y%m%dT%H%M%SZ)
12 [ -z "${OUTDIR}" ] && export OUTDIR=$(mktemp --tmpdir -d ebsco_export.$T.XXXXXXX)
14 $DIR/fetch-shortcodes.sh
16 time ./mucn-ebsco-full-export-parallel.sh
20 pbzip2 -9nvk -p4 *{marc,log}
21 pbzip2 -9nv -p4 split/*{marc,log}
23 cp $DIR/email-template-ebsco.sh $OUTDIR/
25 open ftp://cat00975a:neJUJ4ez@ftp.epnet.com/
33 chmod +x email-template-ebsco.sh
34 ./email-template-ebsco.sh "$T" "@$(date +%s)" >email.txt
35 /usr/lib/sendmail -f rjohnson@sitka.bclibraries.ca <email.txt