ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/Processing/filefi/014/run.sh
Revision: 1.3
Committed: Mon Sep 19 21:38:38 2011 UTC (13 years, 7 months ago) by paus
Content type: application/x-sh
Branch: MAIN
CVS Tags: Mit_032, Mit_031, Mit_025c_branch2, Mit_025c_branch1, Mit_030, Mit_029c, Mit_029b, Mit_030_pre1, Mit_029a, Mit_029, Mit_029_pre1, Mit_028a, Mit_025c_branch0, Mit_028, Mit_027a, Mit_027, Mit_026, Mit_025e, Mit_025d, Mit_025c, Mit_025b, Mit_025a, Mit_025, Mit_025pre2, HEAD
Branch point for: Mit_025c_branch
Changes since 1.2: +0 -0 lines
Log Message:
reinstating filefi

File Contents

# User Rev Content
1 paus 1.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