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
a1ebfa54
Commit
a1ebfa54
authored
9 years ago
by
Carmelo Pellegrino
Browse files
Options
Downloads
Patches
Plain Diff
get_run_number and log functions implemented
parent
400328e3
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
rsselector.sh
+24
-0
24 additions, 0 deletions
rsselector.sh
with
24 additions
and
0 deletions
rsselector.sh
+
24
−
0
View file @
a1ebfa54
...
...
@@ -28,6 +28,30 @@ function dm_driver() {
echo
y
}
function
log
()
{
[
!
-d
~/.km3_private
]
&&
mkdir
-p
~/.km3_private
local
logfile
=
"~/.km3_private/auto_ss.log"
date
>>
${
logfile
}
echo
${
*
}
>>
${
logfile
}
}
function
now
()
{
# print the number of seconds elapsed since Jan 1 1970 00:00 in UTC
date
-u
+%s
}
function
get_run_number
()
{
[
!
-d
~/.km3_private
]
&&
mkdir
-p
~/.km3_private
[
!
-e
~/.km3_private/last_run_number
]
&&
echo
0
>
~/.km3_private/last_run_number
local
last_run_number
=
`
cat
~/.km3_private/last_run_number
`
local
run_number
let
"run_number =
${
last_run_number
}
+ 1"
echo
${
run_number
}
>
~/.km3_private/last_run_number
echo
${
run_number
}
}
# Ask for the run setup
rs_file
=
`
zenity
--title
"Run Setup Selector"
\
...
...
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