Skip to content

Commit ff0131c

Browse files
committed
Add cronjob script to parse DQM results and feed the ZODB database.
1 parent 1bd760d commit ff0131c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
# -*- coding: utf-8 -*-
3+
#
4+
# This script is to be used as a cronjob on the nectarcam-dqm-rw VM on the LPNHE OpenStack cloud platform, in order to feed the ZODB database from DQM run on DIRAC.
5+
6+
# Log everything to $LOGFILE
7+
LOGFILE=${0%".sh"}_$(date +%F).log
8+
exec 1>"$LOGFILE" 2>&1
9+
10+
. "/opt/conda/etc/profile.d/conda.sh"
11+
conda activate nectar-dev
12+
13+
for run in $(dls "/vo.cta.in2p3.fr/user/j/jlenain/nectarcam/dqm" | grep -ve "/vo.cta" | awk -F. '{print $1}' | awk -Fn '{print $2}'); do
14+
python /opt/cta/nectarchain/src/nectarchain/user_scripts/jlenain/parse_dqm_fits_file.py -r $run
15+
done

0 commit comments

Comments
 (0)