-
Notifications
You must be signed in to change notification settings - Fork 0
/
startCron.sh
executable file
·72 lines (72 loc) · 1.16 KB
/
startCron.sh
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
dirname=$PWD/textFiles
genSimName=$PWD'/genSimCrabConfig'
genCrab=$genSimName'/crab_projects'
recoName=$PWD'/recoCrabConfig'
recoCrab=$genSimName'/crab_projects'
aodName=$PWD'/aodCrabConfig'
aodCrab=$genSimName'/crab_projects'
miniAodName=$PWD'/miniAODSIM_crabConfig'
miniAodCrab=$genSimName'/crab_projects'
if [ -d $dirname ]
then
:
else
mkdir $dirname
fi
if [ -d $genSimName ]
then
:
else
mkdir $genSimName
fi
if [ -d $recoName ]
then
:
else
mkdir $recoName
fi
if [ -d $aodName ]
then
:
else
mkdir $aodName
fi
if [ -d $miniAodName ]
then
:
else
mkdir $miniAodName
fi
if [ -d $genCrab ]
then
:
else
mkdir $genCrab
fi
if [ -d $recoCrab ]
then
:
else
mkdir $recoCrab
fi
if [ -d $aodCrab ]
then
:
else
mkdir $aodCrab
fi
if [ -d $miniAodCrab ]
then
:
else
mkdir $miniAodCrab
fi
python /uscms/home/avanderp/nobackup/CMSSW_9_3_6/src/GenStudy/Dimuon/test/callStart.py
#write out current crontab
#crontab -l > mycron
#echo new cron into cron file to submit every 2 hours
#echo "*/5 * * * * /uscms/home/pdong/work/IMSACMS/scripts/manageStepNewAddCopy.sh" >> mycron
#install new cron file
#crontab mycron
#rm mycron