From 6b100633a5279e74e7af4cdfda433b81cdea5610 Mon Sep 17 00:00:00 2001 From: Carmelo Pellegrino <carmelo.pellegrino@gmail.com> Date: Wed, 27 May 2015 14:50:34 +0200 Subject: [PATCH] reporting the date of creation of the window in any window title --- patch-control.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/patch-control.sh b/patch-control.sh index fd90ee5..11933de 100755 --- a/patch-control.sh +++ b/patch-control.sh @@ -62,7 +62,7 @@ function get_run_setup_file() { LIST+=("FALSE" "${line[@]}") done < ${PC_CONF_DIR}/pc.cfg - zenity --title "Run Setup Selector" \ + zenity --title "Run Setup Selector (at $(date))" \ --list \ --text "Select one of the following Run Setups:" \ --radiolist \ @@ -105,7 +105,7 @@ function get_run_number() { # 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 LOCK_OWNER="True" @@ -119,13 +119,13 @@ while [ 1 ]; do rs_file=`get_run_setup_file` 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 fi # Ask for run duration - run_duration=`zenity --title "Run duration" \ + run_duration=`zenity --title "Run duration (at $(date))" \ --list \ --text "Select one of the following duration [minutes]:" \ --radiolist \ @@ -157,7 +157,7 @@ run_number=`get_run_number` ROOT_FILE=`printf "${DIR}/KM3NeT_%08d.root" ${run_number}` ssh ${DAQ_USER}@${DAQ_SERVER} "[ -e ${ROOT_FILE} ]" && { 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 } @@ -194,6 +194,7 @@ PROCS=(${PROCS[*]} $!) # Point the browser to the correct address, if required zenity --question \ --text="Would you like to open the DetectorManager GUI?" \ + --title="Question (at $(date))" \ --cancel-label="No, thanks" && firefox http://localhost:1302/ & PROCS=(${PROCS[*]} $!) @@ -209,6 +210,6 @@ done wait ${DAQ_PROC_ID} 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 -- GitLab