Adding new type of jobs (Marian)
[u/mrichter/AliRoot.git] / TPC / macros / testTPC / action.sh
1 #!/bin/bash
2 #aguments
3 #1 TString jobID, 
4 #2 TString inputData
5 #3 TString outputDir
6 #4 TString   action
7
8 echo $1
9 echo $2
10 echo $3
11 echo $4
12
13
14 mkdir -p /tmp/$USER/$1
15 cd /tmp/$USER/$1
16 which  xrdcp
17
18 command xrdcp $2 data.root
19
20 echo aliroot -b -q $ALICE_ROOT/TPC/macros/testTPC/$4.C
21
22 command aliroot -b -q $ALICE_ROOT/TPC/macros/testTPC/$4.C
23
24 for name in `ls *.root`; do
25   xrdcp $name $3/$4/$name
26 done
27
28
29