Skip to content
Snippets Groups Projects
Commit c9020619 authored by Carmelo Pellegrino's avatar Carmelo Pellegrino
Browse files

calling exit on DM at the return of the DAQ

parent 16f40330
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,8 @@
# DAQ_SERVER -> IP address of the DAQ Server
# DAQ_USER -> user name on the DAQ Server
SELF_PIPE_PORT=45757
function log() {
[ ! -d ${HOME}/.km3_private ] && mkdir -p ${HOME}/.km3_private
local logfile="${HOME}/.km3_private/pc.log"
......@@ -101,6 +103,11 @@ function dm_driver() {
sleep $1
echo "set session target = Off"
nc -l ${SELF_PIPE_PORT} 2>/dev/null 1>/dev/null
echo exit
echo y
}
function nowUTC() {
......@@ -252,6 +259,9 @@ done
wait ${DAQ_PROC_ID}
log "Run ${run_number} finished."
echo quit | nc localhost ${SELF_PIPE_PORT}
zenity --info --text="Run ${run_number} finished at $(date)! The DAQ log file is located in ${daq_log_file}." --title="Info (at $(date))"
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment