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
d8245966
Commit
d8245966
authored
9 years ago
by
Carmelo Pellegrino
Browse files
Options
Downloads
Patches
Plain Diff
time_duration_seconds is used in place of the one in minutes, verbosing messages
parent
175cc347
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
patch-control.sh
+6
-6
6 additions, 6 deletions
patch-control.sh
with
6 additions
and
6 deletions
patch-control.sh
+
6
−
6
View file @
d8245966
...
...
@@ -138,10 +138,11 @@ done | zenity --progress \
# Peak the run number
run_number
=
`
get_run_number
`
let
"run_duration_seconds =
${
run_duration
}
* 60"
log
"Run
${
run_number
}
ready to start.
\
Run start time =
${
run_start_time
}
,
\
run duration =
${
run_duration
}
,
\
run duration =
${
run_duration
}
minutes
,
\
run setup file =
${
rs_file
}
."
daq_log_file
=
~/.km3_private/daq_
${
run_number
}
.log
...
...
@@ -154,12 +155,12 @@ cat ${rs_file} | sed -e 's/RUNNUMBER/${run_number}/' >dm.detectorfile
run_start_time
=
`
nowUTC
`
# Launch the DM
dm_driver
${
run_duration
}
| mono DetectorControl.exe
--control
--reset
&
dm_driver
${
run_duration
_seconds
}
| mono DetectorControl.exe
--control
--reset
&
PROCS
=(
${
PROCS
[*]
}
$!
)
# Launch the DAQ
log
"Launching the DAQ with the following command line: daq.sh
${
run_number
}
${
run_start_time
}
${
run_duration
}
"
daq.sh
${
run_number
}
${
run_start_time
}
${
run_duration
}
log
"Launching the DAQ with the following command line: daq.sh
${
run_number
}
${
run_start_time
}
${
run_duration
_seconds
}
"
daq.sh
${
run_number
}
${
run_start_time
}
${
run_duration
_seconds
}
# Point the browser to the correct address, if required
zenity
--question
\
...
...
@@ -167,10 +168,9 @@ zenity --question \
--cancel-label
=
"No, thanks"
&&
firefox http://localhost:1301/ &
# Wait the end of the run
let
"run_duration_seconds =
${
run_duration
}
* 60"
sleep
${
run_duration_seconds
}
log
"Run
${
run_number
}
finished."
zenity
--info
--text
=
"Run
${
run_number
}
finished!"
zenity
--info
--text
=
"Run
${
run_number
}
finished!
The DAQ log file is located in
${
daq_log_file
}
.
"
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