From: buncic Date: Mon, 21 May 2001 17:27:36 +0000 (+0000) Subject: This is a script to send alirun command as a batch job. X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=dcc9d04f0cccca5892db128388b09a8f4fe01f19 This is a script to send alirun command as a batch job. --- diff --git a/share/alijob b/share/alijob new file mode 100755 index 00000000000..f08d590860b --- /dev/null +++ b/share/alijob @@ -0,0 +1,60 @@ +#!/bin/sh +############################################################################# +# alijob - a shell script to run AliRoot in batch +############################################################################# +# +# modification history +# +# $Log$ +# +# SYNOPSIS +# alijob [-setroot $ALICE_ROOT $ROOTSYS] command... +# +# DESCRIPTION + +#C< +########################################################################### + +########################################################################### +AliJob() +########################################################################### +{ + printf "alijob [-setroot \$ALICE_ROOT \$ROOTSYS] command...\n" + exit +} + +########################################################################### + +for param in $* +do + case $1 in + -trace) + shift 1 + set -vx + ;; + -help) + AliJob + ;; + -setroot) + shift 1 + ALICE_ROOT=$1 + ROOTSYS=$2 + shift 1 + ;; + -echo) + shift 1 + ECHO="echo " + ;; + *) + break + ;; + esac +done + +if [ "$1" = "" ] +then + AliJob +else + $ECHO bsub -setroot $ALICE_ROOT $ROOTSYS $* +fi +