Added arg option to sge script.

This commit is contained in:
Michael Herzberg 2017-09-02 17:45:12 +01:00
parent c94f23dcee
commit 54475b97a8
2 changed files with 3 additions and 6 deletions

View File

@ -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 $@

View File

@ -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" \
$@