ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/Processing/filefi/014/run.sh
Revision: 1.1
Committed: Fri Jun 18 21:41:15 2010 UTC (14 years, 10 months ago) by paus
Content type: application/x-sh
Branch: MAIN
CVS Tags: Mit_024b, Mit_025pre1, Mit_024a, Mit_024, Mit_022a, Mit_022, Mit_020d, TMit_020d, Mit_020c, Mit_021, Mit_021pre2, Mit_021pre1, Mit_020b, Mit_020a, Mit_020, Mit_020pre1, Mit_018, Mit_017, Mit_017pre3, Mit_017pre2, Mit_017pre1, Mit_016, Mit_015b, Mit_015a, Mit_015, Mit_014e, Mit_014d, Mit_014c, Mit_014b
Log Message:
Config.

File Contents

# Content
1 #!/bin/sh
2 #===================================================================================================
3 #
4 # Script to run a cmsRun job file by file.
5 #
6 #===================================================================================================
7
8 echo ""
9 echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX id; env; pwd"
10 id; env; pwd
11
12 echo ""
13 echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ls -lhrt"
14 ls -lhrt
15
16 echo ""
17 echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ls -lhrt *"
18 ls -lhrt *
19
20 echo ""
21 echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX find ./"
22 find ./
23
24 # Here is where our stuff happens
25
26 export JOBID=$1
27 export DATADIR=$2
28 export InputFiles=`head -$JOBID *.lfns_* | tail -1`
29
30 echo ""
31 echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
32 echo "Produce the input files: $InputFiles"
33 echo " input files: $InputFiles"
34 python ./writeCfg.py pset.py cmssw_ex.py
35 echo ""
36 echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
37 echo "Python file: cmssw.py"
38 ## cat cmssw.py
39
40 echo ""
41 echo "Start running at `date -u`"
42 echo ""
43 start_exe_time=`date +%s`
44 CPU_INFOS=-1
45
46 /usr/bin/time \
47 -f "%U %S %P" \
48 -o cpu_timing.txt \
49 cmsRun \
50 -j ${RUNTIME_AREA}/crab_fjr_${JOBID}.xml \
51 -p cmssw_ex.py
52
53 cmsrun_exit_status=$?
54
55 CPU_INFOS=`tail -n 1 cpu_timing.txt`
56 stop_exe_time=`date +%s`
57
58 echo ""
59 echo "Running ended at `date -u`"
60 echo ""
61
62 exit 0