ROOTPWA
SetWorkdir.sh
Go to the documentation of this file.
1 #!/bin/bash
2 #
3 # Script to get workdir from a list of directories
4 # SGE ArrayJob index of the task we are in
5 # Input: $1=LIST $2=JobID
6 
7 LIST=$1
8 JOBID=$2
9 
10 MYDIR=`head -n $JOBID $LIST | tail -n 1`
11 echo $MYDIR