From 2952d0663863570514e960065dac8c38efcb8ee2 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Mon, 15 Aug 2011 13:03:24 -0400 Subject: [PATCH] Automate the CRKN processing with a little script Parallelized via ( &) for your convenience. Signed-off-by: Dan Scott --- tools/ebooks/process_CRKN.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tools/ebooks/process_CRKN.sh diff --git a/tools/ebooks/process_CRKN.sh b/tools/ebooks/process_CRKN.sh new file mode 100644 index 0000000000..29e54cd8fd --- /dev/null +++ b/tools/ebooks/process_CRKN.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +# Get thee to a processing directory +cd /tmp + +# Run in subshells for the power of parallelization + +# OUP +(python ~/source/Conifer/tools/ebooks/prep_ebook_records.py --authorization 'Ingram Digital (Firm)' --consortium 'Canadian Research Knowledge Network' --publisher 'Oxford University Press' --windsor --laurentian --algoma --input ~/Documents/Library/Windsor/files_couttsinfo_com/CRKN_OUP.mrc --output CRKN_OUP.mrc > CRKN_OUP.mrc.log &) +(python ~/source/Conifer/tools/ebooks/prep_ebook_records.py --authorization 'Ingram Digital (Firm)' --consortium 'Canadian Research Knowledge Network' --publisher 'Oxford University Press' --windsor --laurentian --algoma --input ~/Documents/Library/Windsor/files_couttsinfo_com/CRKN_OUP_2010_11.mrc --output CRKN_OUP_2010_11.mrc > CRKN_OUP_2010_11.mrc.log &) + +# CUP +(python ~/source/Conifer/tools/ebooks/prep_ebook_records.py --authorization 'Ingram Digital (Firm)' --consortium 'Canadian Research Knowledge Network' --publisher 'Cambridge University Press' --windsor --laurentian --input ~/Documents/Library/Windsor/files_couttsinfo_com/CRKN_CUP.mrc --output CRKN_CUP.mrc > CRKN_CUP.mrc.log &) +(python ~/source/Conifer/tools/ebooks/prep_ebook_records.py --authorization 'Ingram Digital (Firm)' --consortium 'Canadian Research Knowledge Network' --publisher 'Cambridge University Press' --windsor --laurentian --input ~/Documents/Library/Windsor/files_couttsinfo_com/CRKN_CUP_2010_11.mrc --output CRKN_CUP_2010_11.mrc > CRKN_CUP_2010_11.mrc.log &) + +# CUP / OUP +(python ~/source/Conifer/tools/ebooks/prep_ebook_records.py --authorization 'Ingram Digital (Firm)' --consortium 'Canadian Research Knowledge Network' --publisher 'Oxford University Press' --windsor --laurentian --algoma --input ~/Documents/Library/Windsor/files_couttsinfo_com/CRKN_2009_CUP_OUP.mrc --output CRKN_2009_CUP_OUP.mrc > CRKN_2009_CUP_OUP.mrc.log &) + +# T&F +(python ~/source/Conifer/tools/ebooks/prep_ebook_records.py --authorization 'Ingram Digital (Firm)' --consortium 'Canadian Research Knowledge Network' --publisher 'Taylor & Francis' --windsor --input ~/Documents/Library/Windsor/files_couttsinfo_com/CRKN_T\&F.mrc --output CRKN_T\&F.mrc > CRKN_T\&F.mrc.log &) +(python ~/source/Conifer/tools/ebooks/prep_ebook_records.py --authorization 'Ingram Digital (Firm)' --consortium 'Canadian Research Knowledge Network' --publisher 'Taylor & Francis' --windsor --input ~/Documents/Library/Windsor/files_couttsinfo_com/CRKN_T\&F_2010_11.mrc --output CRKN_T\&F_2010_11.mrc > CRKN_T\&F_2010_11.mrc.log &) -- 2.11.0