- Timestamp:
- 2010-05-05T17:33:46+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/mat/trunk/bin/script/mat-colbuild-download.bash
r22002 r22041 13 13 # $9 should be the creator 14 14 # $10 should be the proxy settings 15 16 COL_NAME=$1 17 OAI_URL=$2 18 CACHE_DIR=$3 19 MAX_RECORDS=$4 20 OAI_PREF=$5 15 21 GS3_ROOT=$6 16 22 COLLECT_DIR=$7 17 23 LOG_FILE=$8 18 CACHE_DIR=$3 24 CREATOR=$9 25 #SHIFT 26 #PROXY=$9 19 27 20 28 if [ -x /usr/bin/lsof ] ; then … … 28 36 fi 29 37 30 TOMCAT_ID=`ps ux | grep tomcat | grep java | grep -v grep | awk -F" " '{ print $ 2}'`38 TOMCAT_ID=`ps ux | grep tomcat | grep java | grep -v grep | awk -F" " '{ print $OAI_URL }'` 31 39 32 40 if [ ! -z "$lsof" ] ; then … … 44 52 source setup.bash >> $LOG_FILE 45 53 46 perl -S mkcol.pl -gs3mode - collectdir $COLLECT_DIR $154 perl -S mkcol.pl -gs3mode -buildtype lucene -collectdir $COLLECT_DIR $COL_NAME 47 55 48 echo $ 1 $2 $3 $4 $5 $6 $7 $8>> $LOG_FILE56 echo $COL_NAME $OAI_URL $CACHE_DIR $MAX_RECORDS $OAI_PREF $GS3_ROOT $COLLECT_DIR $LOG_FILE >> $LOG_FILE 49 57 50 58 if [ ! -z "$lsof" ] ; then … … 67 75 fi 68 76 69 perl -S downloadfrom.pl -download_mode OAI -cache_dir $CACHE_DIR -url $ 2 -max_records $4 -metadata_prefix $5 $92>&1 >> $LOG_FILE77 perl -S downloadfrom.pl -download_mode OAI -cache_dir $CACHE_DIR -url $OAI_URL -max_records $MAX_RECORDS -metadata_prefix $OAI_PREF $CREATOR 2>&1 >> $LOG_FILE 70 78 71 79 if [ ! -z "$lsof" ] ; then
Note:
See TracChangeset
for help on using the changeset viewer.