Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
patch-control
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carmelo Pellegrino
patch-control
Commits
6b100633
Commit
6b100633
authored
9 years ago
by
Carmelo Pellegrino
Browse files
Options
Downloads
Patches
Plain Diff
reporting the date of creation of the window in any window title
parent
ced0b76d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
patch-control.sh
+7
-6
7 additions, 6 deletions
patch-control.sh
with
7 additions
and
6 deletions
patch-control.sh
+
7
−
6
View file @
6b100633
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment