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

Check whether a root file already exists. This resolves issue #5.

parent c3d3f1e0
No related branches found
No related tags found
No related merge requests found
......@@ -153,6 +153,14 @@ done | zenity --progress \
# Peak the run number
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."
exit 1
}
let "run_duration_seconds = ${run_duration} * 60"
log "Run ${run_number} ready to start. \
......
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