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
726d3baa
Commit
726d3baa
authored
9 years ago
by
Carmelo Pellegrino
Browse files
Options
Downloads
Patches
Plain Diff
lock and error message in case of already locked implemented
parent
a1664e9a
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
+12
-1
12 additions, 1 deletion
rsselector.sh
with
12 additions
and
1 deletion
rsselector.sh
+
12
−
1
View file @
726d3baa
...
...
@@ -16,7 +16,11 @@ function rm_lock() {
}
function
test_lock
()
{
return
[
-e
/tmp/auto_ss
]
if
[
-e
/tmp/auto_ss
]
;
then
return
1
else
return
0
fi
}
function
createList
()
{
...
...
@@ -64,6 +68,11 @@ function get_run_number() {
echo
${
run_number
}
}
test_lock
||
{
zenity
--error
--text
=
"There is another instance running of this program."
;
exit
1
;
}
put_lock
while
[
1
]
;
do
# Ask for the run setup
...
...
@@ -138,4 +147,6 @@ sleep ${run_duration}
zenity
--info
--text
=
"Run
${
run_number
}
finished!"
rm_lock
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