resubmitMissing.sh - resubmit calibration jobns for missing runs
[u/mrichter/AliRoot.git] / TPC / scripts / submitCalibJob.sh
CommitLineData
acd4c700 1#!/bin/sh
2
3# 1 argument - start file
4# 2 argument - number of files
5# 3 argument - input file list
6# 4 argument - run number used for ConfigOCDB
7
05e3ee70 8fstart=$1
9fend=$2
10cdbrun=$4
11run=$4
12echo $1 $2 $3 $4
13
acd4c700 14echo Hallo world
15echo Hostname $HOSTNAME
05e3ee70 16echo RUN $4
acd4c700 17df /tmp
acd4c700 18source ../balice.sh
19source ../alienSetup.sh
05e3ee70 20
21
acd4c700 22mkdir $1_$2
23cp *.C $1_$2
24cd $1_$2
25cp $3 esd.txt
26
27dname=`basename \`pwd\``
28basename=`pwd`/${fstart}_${fend}
29mkdirhier $basename
05e3ee70 30tmpname=/tmp/$USER/$run/$dname/${fstart}_${fend}
acd4c700 31mkdirhier $tmpname
32cp * $tmpname
33ls -al $tmpname
34cd $tmpname
05e3ee70 35echo Working directory $tmpname
acd4c700 36
37
acd4c700 38echo start aliroot
39echo command aliroot -q -b CalibrateTPC.C\($fstart,$fend,$cdbrun\)
40echo PWD `pwd`
41echo 00000000000000000000000000000000000000000000000
42echo Start job
43echo Date `date`
44echo 00000000000000000000000000000000000000000000000
45command aliroot -q -b "CalibrateTPC.C($fstart,$fend,$cdbrun)"
46echo 00000000000000000000000000000000000000000000000
47echo Copy output
48echo Date `date`
49echo 00000000000000000000000000000000000000000000000
50
51rm *.root
52cp -rf * $basename
53
54
55echo 00000000000000000000000000000000000000000000000
56echo End job
57echo Date `date`
58echo 00000000000000000000000000000000000000000000000
59exit
60
61