-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubmit_process.sh
executable file
·38 lines (34 loc) · 1.14 KB
/
submit_process.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# source /afs/cern.ch/sw/lcg/contrib/gcc/4.6/x86_64-slc5-gcc46-opt/setup.sh
# source /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.01/x86_64-slc5-gcc46-dbg/root/bin/thisroot.sh
# export PATH=/afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.01/x86_64-slc5-gcc46-dbg/root/lib/:$PATH
# export PATH=/afs/cern.ch/sw/lcg/external/xrootd/3.2.7/x86_64-slc5-gcc46-opt/bin:$PATH
# export LD_LIBRARY_PATH=/afs/cern.ch/sw/lcg/contrib/gcc/4.6/x86_64-slc5-gcc46-opt/lib64:${LD_LIBRARY_PATH}
# export LD_LIBRARY_PATH=/afs/cern.ch/sw/lcg/external/xrootd/3.2.7/x86_64-slc5-gcc46-opt/lib64:${LD_LIBRARY_PATH}
#set path to rootlib, thisroot.sh, gcc, lib64 here if rquired
# mounteos
cd "$(dirname "$0")"
echo "The Working Directory is: ";
pwd
if [[ $# -ne 0 ]];
then
echo 'Scanning for RunSetting Files';
counter=0;
for i in $*;
do
echo $i;
((counter++));
done
echo 'There are '$counter 'RunSetting Files to be processed';
echo 'Submitting Processing of raw data!'
index=0
for i in $*;
do
echo './process '$i;
./process $i;
done
echo 'Finished processing!'
else
echo 'ERROR: no RunSettingfiles provided!';
echo 'Syntax ' $0 ' RunSettingfilefilename (including Wildchars!)';
fi