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
39
40
41
42
43
44
45
46
47
48
49
50
|
#run popcon example1
# put your firstsince value after xxx
mkdir testPopCon
pushd testPopCon
cp $LOCALRT/src/CondCore/PopCon/test/PopConExample1_template.py PopConExample1_template.py
sed -i 's/yyy/3/g' PopConExample1_template.py
cat PopConExample1_template.py | sed 's/xxx/3/g' > tmp_PopConExample.py
echo "populate xxx, xxx+10, xxx+20" | sed 's/xxx/3/g'
cmsRun tmp_PopConExample.py
rm tmp_PopConExample.py
# if you want to proove again... otherwise skip to db inspection
# put your firstsince value after xxx
cat PopConExample1_template.py | sed 's/xxx/15/g' > tmp_PopConExample.py
echo "populate xxx, xxx+10, xxx+20" | sed 's/xxx/15/g'
cmsRun tmp_PopConExample.py
rm tmp_PopConExample.py
# if you want to proove again... otherwise skip to db inspection
# put your firstsince value after xxx
cat PopConExample1_template.py | sed 's/xxx/45/g' > tmp_PopConExample.py
echo "populate xxx, xxx+10, xxx+20" | sed 's/xxx/45/g'
cmsRun tmp_PopConExample.py
rm tmp_PopConExample.py
echo "inspect db"
cmscond_list_iov -c sqlite_file:pop_test.db -a
echo "get iov details"
cmscond_list_iov -c sqlite_file:pop_test.db -t Example_tag
#note: tag-name, log-name and db-name must be the same as in the cfg file
echo "dump log"
cmscond_logdb_dump -c sqlite_file:log.db > test_log1.log
# moving the EXECTIME information from the log
cat test_log1.log | sed 's/EXECTIME (string) : 20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9][0-9]:[0-9][0-9]:[0-9][0-9]//g' | sed 's/EXECTIME (string) : 20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9][0-9]:[0-9][0-9]:[0-9]//g' | sed 's/EXECTIME (string) : 20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9][0-9]:[0-9]:[0-9][0-9]//g' | sed 's/EXECTIME (string) : 20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9][0-9]:[0-9]:[0-9]//g' | sed 's/EXECTIME (string) : 20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9]:[0-9][0-9]:[0-9][0-9]//g' | sed 's/EXECTIME (string) : 20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9]:[0-9][0-9]:[0-9]//g' | sed 's/EXECTIME (string) : 20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9]:[0-9]:[0-9][0-9]//g' | sed 's/EXECTIME (string) : 20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9]:[0-9]:[0-9]//g' > test_log2.log
mv test_log2.log test_log1.log
cat test_log1.log
popd
|