Changeset 18207 for other-projects


Ignore:
Timestamp:
2008-12-16T14:21:50+13:00 (15 years ago)
Author:
cc108
Message:

add new proxy settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/trunk/greenstone3-extension/mat/bin/script/mat-colbuild-download.bash

    r18181 r18207  
    11# if this file is executed, /bin/sh is used, as we don't start with #!
    22# this should work under ash, bash, zsh, ksh, sh style shells.
    3 
    4 
    5 
    63# $1 should be the collection name
    74# $2 should be the oai URL
     
    129# $7 should be the collection directory
    1310# $8 should the log file
    14 
     11# $9 should be the creator
     12# $10 should be the proxy settings
    1513GS3_ROOT=$6
    1614COLLECT_DIR=$7
     
    3432perl -S mkcol.pl -gs3mode -collectdir $COLLECT_DIR -creator $9 $1
    3533
    36 # need to ensure that OAIPLUG is included
    37 # hack the model collection to include it
    38 
    3934echo $1 $2 $3 $4 $5 $6 $7 $8 >> $LOG_FILE
    4035
     
    5449echo open files: $NUM_OPEN_FILES
    5550
    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
     51downloadfrom.pl -download_mode OAI -cache_dir $3 -url $2 -max_records $4 -metadata_prefix $5 $10  2>&1 >> $LOG_FILE
    6252
    6353NUM_OPEN_FILES=`/usr/sbin/lsof -p $TOMCAT_ID | wc -l `
    6454echo open files: $NUM_OPEN_FILES
    65 # 2>&1 >> /tmp/mat.txt
    6655
    67 #source $GS3_ROOT/gs2build/bin/script/mat-colbuild.bash $1 $2 $3 $4 $5 $GS3_ROOT $COLLECT_DIR $LOG_FILE
    6856
Note: See TracChangeset for help on using the changeset viewer.