-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.sh
39 lines (28 loc) · 831 Bytes
/
commands.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
# make the mounted volume writable
sudo chown $USER /mnt/vol
ls -l /mnt/vol
echo git versions:
which git
git --version
echo PATH:
echo $PATH
echo pwd:
pwd
echo ls -l:
ls -l
# git clone -b odws2022-ttbaljets-prod https://github.com/cms-opendata-analyses/PhysObjectExtractorTool.git
# cd PhysObjectExtractorTool/PhysObjectExtractor
# scram b
# cmsRun python/poet_cfg.py True > poet.out 2>&1
# # /code/ouput and the if statement only needed for the docker workflow which does not use /mnt/vol
# mkdir /code/output
# cp poet.out /code/ouput
# cp myoutput.root /code/output
# outputs dir comes from the shared volume (but is not writable..)
# touch /code/outputs/some.out
# this would happen if /mnt/vol is created
if [ -d /mnt/vol ]; then
touch /mnt/vol/some.out
# mv poet.out /mnt/vol
# mv myoutput.root /mnt/vol/
fi