Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
ingesting:ingbscript [2012/11/27 09:59]
giancarlo
ingesting:ingbscript [2012/11/27 10:28]
giancarlo
Line 2: Line 2:
  
  
-  * Multiple book ingesting script+  * Multiple book ingesting script (same collection)
  
 <WRAP prewrap center> <WRAP prewrap center>
 <code bash ingpiubook.sh> <code bash ingpiubook.sh>
 +#!/bin/bash
  
 +FEDORA_HOME="/usr/local/fedora"
 +export FEDORA_HOME
 +
 +PATH=$PATH:$FEDORA_HOME/server/bin:$FEDORA_HOME/client/bin:$JAVA_HOME/bin:/bin:/usr/bin:/sbin:/usr/sbin
 +export PATH
 +
 +#Parameters
 +
 +#1 directory of book directories
 +#e.g. IMPORT_BASE_DIR="/srv/storage/scansioni/cognetti_collezioni/direttori/"
 +IMPORT_BASE_DIR=$1
 +
 +#2 Collection PID
 +#e.g. IMPORT_COLLECTION="openbess:cognetti-C001"
 +IMPORT_COLLECTION=$2
 +
 +#3 fedoraAdmin password or test
 +
 +#4 number of pages to ingest or 0 for all
 +
 +n=0
 +for ndir in $(find "$IMPORT_BASE_DIR"* -maxdepth 0 -type d);
 +do
 +   if [[ "$3" != test ]]
 +   then
 +      sleep 60
 +   else
 +      echo "NO wait"
 +   fi
 +   echo "=====> $nomedir"
 +   ./ingbookepages.sh "$ndir" $2 $3 $4
 +done
 +</code>
 +</WRAP>
 +
 +  * Single book ingesting script
 +
 +<WRAP prewrap center>
 +<code bash ingbookepages.sh.sh>
 </code> </code>
 </WRAP> </WRAP>
 
 
ingesting/ingbscript.txt ยท Last modified: 2012/11/27 11:02 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki