diff --git a/patch-control.sh b/patch-control.sh index 820441f19bb46c86eaf424048b82d50a0ccddeca..74191e6be37bb4287486bcd8b4f5f5d76016db63 100755 --- a/patch-control.sh +++ b/patch-control.sh @@ -8,6 +8,11 @@ # Author: Carmelo Pellegrino <carmelo.pellegrino@bo.infn.it> # +# The configuration of this very script is perfomed via shell variables. +# Here the list of parameters is reported +# +# DM_EXE_DIR -> the absolute path to the DetectorControl.exe program + function put_lock() { touch /tmp/pc.lock } @@ -158,7 +163,7 @@ cat ${rs_file} | sed -e "s/RUNNUMBER/${run_number}/" >dm.detectorfile run_start_time=`nowUTC` # Launch the DM -dm_driver ${run_duration_seconds} | mono DetectorControl.exe --control --reset & +dm_driver ${run_duration_seconds} | mono ${DM_EXE_DIR}/DetectorControl.exe --control --reset & PROCS=(${PROCS[*]} $!) # Launch the DAQ