2017-08-23 15:52:18 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -o nounset
|
|
|
|
|
2017-09-20 14:19:30 +00:00
|
|
|
SING_EXEC="singularity exec --pwd /opt/ExtensionCrawler -B $TMPDIR:/tmp $SING_IMG"
|
2017-08-23 22:23:21 +00:00
|
|
|
|
2017-09-20 14:19:30 +00:00
|
|
|
printenv
|
2017-09-07 11:44:08 +00:00
|
|
|
echo "The following parameter were passed: $*"
|
2017-09-20 14:19:30 +00:00
|
|
|
echo "Printing the content of $ARCHIVE to force mounting:"
|
|
|
|
ls "$ARCHIVE"
|
2017-09-07 11:44:08 +00:00
|
|
|
|
2017-09-20 16:13:52 +00:00
|
|
|
/usr/bin/time $SING_EXEC ./grepper -t 1 -a "$ARCHIVE" -n $SGE_TASK_ID -N $MAX_SGE_TASK_ID $* | bzip2 > "$BASEDIR/out/$SGE_TASK_ID.bz2"
|