-
Check out the latest sbndaq project code into your MRB area, run a build, followed by the
mrb -i; mrbslp
command that installs database tools into the$SBNDAQ_DIR/configDB_tools
directory. -
Review $HOME/.artdaq_grafana.env or create a new one if required. Ask Wes or Gennadiy to send you a working copy of .artdaq_grafana.env.
-
Setup the sbndaq product from the
$MRB_TOP/localProducts_*
directory and confirm that therunrecords_monitor.sh
script will execute from$MRB_TOP/localProducts_*
by running thewhich runrecords_monitor.sh
command.
ups list -aK+ sbndaq -z $MRB_TOP/localProducts_*
#$ "sbndaq" "v1_00_01" "Linux64bit+3.10-2.17" "e20:prof:s112" ""
setup "sbndaq" "v1_00_01" -q "e20:prof:s112"
which runrecords_monitor.sh
#$ ~/DAQ_DevAreas/DAQ_03Dec2021PRD/localProducts_sbndaq_v1_00_01_e20_prof_s112/sbndaq/v1_00_01/configDB_tools/runrecords_monitor.sh
- Copy
runrecords_monitor* into
${HOME}/cronjobs/
.
cp $(dirname $(which runrecords_monitor.sh))/runrecords_monitor* ${HOME}/cronjobs/ && chmod a+rx ${HOME}/cronjobs/runrecords_monitor.sh
- Add or update the crontab entry for
runrecords_monitor.sh
with thecrontab -e
command (uses vi editor).
* * * * * ~/cronjobs/runrecords_monitor.sh >> /daq/log/grafana/runrecords_monitor.log 2>&1
- Wait 2 mins and verify the cronjob runs by running the
tail -20 /daq/log/grafana/runrecords_monitor.log
command.