Changeset 18207 for other-projects
- Timestamp:
- 2008-12-16T14:21:50+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/trunk/greenstone3-extension/mat/bin/script/mat-colbuild-download.bash
r18181 r18207 1 1 # if this file is executed, /bin/sh is used, as we don't start with #! 2 2 # this should work under ash, bash, zsh, ksh, sh style shells. 3 4 5 6 3 # $1 should be the collection name 7 4 # $2 should be the oai URL … … 12 9 # $7 should be the collection directory 13 10 # $8 should the log file 14 11 # $9 should be the creator 12 # $10 should be the proxy settings 15 13 GS3_ROOT=$6 16 14 COLLECT_DIR=$7 … … 34 32 perl -S mkcol.pl -gs3mode -collectdir $COLLECT_DIR -creator $9 $1 35 33 36 # need to ensure that OAIPLUG is included37 # hack the model collection to include it38 39 34 echo $1 $2 $3 $4 $5 $6 $7 $8 >> $LOG_FILE 40 35 … … 54 49 echo open files: $NUM_OPEN_FILES 55 50 56 # use this line when metadata prefix has been added to OAI downloader 57 # downloadfrom.pl -download_mode OAI -cache_dir $3 -url $2 -max_records $4 -prefix $5 -proxy_on -proxy_host wwwcache.cs.waikato.ac.nz -proxy_port 80 58 59 downloadfrom.pl -download_mode OAI -cache_dir $3 -url $2 -max_records $4 -metadata_prefix $5 -proxy_on -proxy_host wwwcache.cs.waikato.ac.nz -proxy_port 80 2>&1 >> $LOG_FILE 60 61 #downloadfrom.pl -download_mode OAI -cache_dir $3 -url $2 -max_records $4 -metadata_prefix $5 >> $LOG_FILE 51 downloadfrom.pl -download_mode OAI -cache_dir $3 -url $2 -max_records $4 -metadata_prefix $5 $10 2>&1 >> $LOG_FILE 62 52 63 53 NUM_OPEN_FILES=`/usr/sbin/lsof -p $TOMCAT_ID | wc -l ` 64 54 echo open files: $NUM_OPEN_FILES 65 # 2>&1 >> /tmp/mat.txt66 55 67 #source $GS3_ROOT/gs2build/bin/script/mat-colbuild.bash $1 $2 $3 $4 $5 $GS3_ROOT $COLLECT_DIR $LOG_FILE68 56
Note:
See TracChangeset
for help on using the changeset viewer.