Automate the CRKN processing with a little script
authorDan Scott <dan@coffeecode.net>
Mon, 15 Aug 2011 17:03:24 +0000 (13:03 -0400)
committerDan Scott <dscott@laurentian.ca>
Tue, 7 May 2013 18:37:25 +0000 (14:37 -0400)
Parallelized via ( &) for your convenience.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
tools/ebooks/process_CRKN.sh [new file with mode: 0644]

diff --git a/tools/ebooks/process_CRKN.sh b/tools/ebooks/process_CRKN.sh
new file mode 100644 (file)
index 0000000..29e54cd
--- /dev/null
@@ -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 &)