Added arg option to sge script.
This commit is contained in:
parent
c94f23dcee
commit
54475b97a8
|
@ -10,4 +10,4 @@ set -o nounset
|
|||
|
||||
printenv
|
||||
|
||||
"$BASEDIR/ExtensionCrawler/create-db" -t 1 -a "$ARCHIVE" -n $SGE_TASK_ID -N $MAX_SGE_TASK_ID $EXTRAARGS
|
||||
"$BASEDIR/ExtensionCrawler/create-db" -t 1 -a "$ARCHIVE" -n $SGE_TASK_ID -N $MAX_SGE_TASK_ID $@
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
set -o nounset
|
||||
set -o errexit
|
||||
|
||||
EXTRAARGS=${EXTRAARGS:-}
|
||||
echo "Using extra args: $EXTRAARGS"
|
||||
|
||||
NRJOBS=${NRJOBS:-256}
|
||||
echo "Using $NRJOBS jobs"
|
||||
|
||||
|
@ -26,11 +23,11 @@ echo "Starting job ..."
|
|||
ssh sharc.shef.ac.uk \
|
||||
ARCHIVE=\"$ARCHIVE\" \
|
||||
BASEDIR=\"$TARGETDIR\" \
|
||||
EXTRAARGS=\"$EXTRAARGS\" \
|
||||
MAX_SGE_TASK_ID=\"$NRJOBS\" \
|
||||
qsub \
|
||||
-V \
|
||||
-t 1-$NRJOBS \
|
||||
-j yes \
|
||||
-o "$TARGETDIR/logs" \
|
||||
"$TARGETDIR/ExtensionCrawler/sge/create-db.sge"
|
||||
"$TARGETDIR/ExtensionCrawler/sge/create-db.sge" \
|
||||
$@
|
||||
|
|
Loading…
Reference in New Issue