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

reporting the date of creation of the window in any window title

parent ced0b76d
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ function get_run_setup_file() { ...@@ -62,7 +62,7 @@ function get_run_setup_file() {
LIST+=("FALSE" "${line[@]}") LIST+=("FALSE" "${line[@]}")
done < ${PC_CONF_DIR}/pc.cfg done < ${PC_CONF_DIR}/pc.cfg
zenity --title "Run Setup Selector" \ zenity --title "Run Setup Selector (at $(date))" \
--list \ --list \
--text "Select one of the following Run Setups:" \ --text "Select one of the following Run Setups:" \
--radiolist \ --radiolist \
...@@ -105,7 +105,7 @@ function get_run_number() { ...@@ -105,7 +105,7 @@ function get_run_number() {
# Script begins here # Script begins here
test_lock || { zenity --error --text="There is another instance running of this program."; exit 1;} test_lock || { zenity --error --text="There is another instance running of this program." --title="Error (at $(date))"; exit 1;}
put_lock put_lock
LOCK_OWNER="True" LOCK_OWNER="True"
...@@ -119,13 +119,13 @@ while [ 1 ]; do ...@@ -119,13 +119,13 @@ while [ 1 ]; do
rs_file=`get_run_setup_file` rs_file=`get_run_setup_file`
if [ -z "${rs_file}" ]; then if [ -z "${rs_file}" ]; then
zenity --error --text="No Run Setup file selected, aborting" zenity --error --text="No Run Setup file selected, aborting" --title="Error (at $(date))"
exit -1 exit -1
fi fi
# Ask for run duration # Ask for run duration
run_duration=`zenity --title "Run duration" \ run_duration=`zenity --title "Run duration (at $(date))" \
--list \ --list \
--text "Select one of the following duration [minutes]:" \ --text "Select one of the following duration [minutes]:" \
--radiolist \ --radiolist \
...@@ -157,7 +157,7 @@ run_number=`get_run_number` ...@@ -157,7 +157,7 @@ run_number=`get_run_number`
ROOT_FILE=`printf "${DIR}/KM3NeT_%08d.root" ${run_number}` ROOT_FILE=`printf "${DIR}/KM3NeT_%08d.root" ${run_number}`
ssh ${DAQ_USER}@${DAQ_SERVER} "[ -e ${ROOT_FILE} ]" && { ssh ${DAQ_USER}@${DAQ_SERVER} "[ -e ${ROOT_FILE} ]" && {
log "A root file for the current run already exists. Run ${run_number} canceled." log "A root file for the current run already exists. Run ${run_number} canceled."
zenity --error --text="A root file for the current run already exists. Run ${run_number} canceled." zenity --error --text="A root file for the current run already exists. Run ${run_number} canceled." --title="Error (at $(date))"
exit 1 exit 1
} }
...@@ -194,6 +194,7 @@ PROCS=(${PROCS[*]} $!) ...@@ -194,6 +194,7 @@ PROCS=(${PROCS[*]} $!)
# Point the browser to the correct address, if required # Point the browser to the correct address, if required
zenity --question \ zenity --question \
--text="Would you like to open the DetectorManager GUI?" \ --text="Would you like to open the DetectorManager GUI?" \
--title="Question (at $(date))" \
--cancel-label="No, thanks" && firefox http://localhost:1302/ & --cancel-label="No, thanks" && firefox http://localhost:1302/ &
PROCS=(${PROCS[*]} $!) PROCS=(${PROCS[*]} $!)
...@@ -209,6 +210,6 @@ done ...@@ -209,6 +210,6 @@ done
wait ${DAQ_PROC_ID} wait ${DAQ_PROC_ID}
log "Run ${run_number} finished." log "Run ${run_number} finished."
zenity --info --text="Run ${run_number} finished! The DAQ log file is located in ${daq_log_file}." 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 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