Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xxx-R6-1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
synApps_6_1_Working
xxx-R6-1
Commits
1571390b
Commit
1571390b
authored
9 years ago
by
Pete Jemian
Browse files
Options
Downloads
Patches
Plain Diff
when comparing strings in bash shell, wrap in quotes
parent
a9107445
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
iocBoot/iocLinux/xxx.sh
+4
-4
4 additions, 4 deletions
iocBoot/iocLinux/xxx.sh
with
4 additions
and
4 deletions
iocBoot/iocLinux/xxx.sh
+
4
−
4
View file @
1571390b
...
...
@@ -78,14 +78,14 @@ checkpid() {
BIN_CWD
=
`
${
READLINK
}
/proc/
${
pid
}
/cwd
`
IOC_CWD
=
`
${
READLINK
}
-f
${
IOC_STARTUP_DIR
}
`
if
[
$BIN_CWD
==
$IOC_CWD
]
;
then
if
[
"
$BIN_CWD
"
==
"
$IOC_CWD
"
]
;
then
# The IOC is running; the binary with PID=$pid is the IOC that was run from $IOC_STARTUP_DIR
IOC_PID
=
${
pid
}
IOC_DOWN
=
0
SCREEN_PID
=
""
if
[
${
GET_SCREEN_PID
}
==
"YES"
]
if
[
"
${
GET_SCREEN_PID
}
"
==
"YES"
]
then
# Get the PID of the parent of the IOC (shell or screen)
P_PID
=
`
${
PS
}
-p
${
IOC_PID
}
-o
ppid
=
`
...
...
@@ -102,12 +102,12 @@ checkpid() {
do
#!${ECHO} ${s_pid}
if
[
${
s_pid
}
==
${
P_PID
}
]
;
then
if
[
"
${
s_pid
}
"
==
"
${
P_PID
}
"
]
;
then
SCREEN_PID
=
${
s_pid
}
break
fi
if
[
${
s_pid
}
==
${
GP_PID
}
]
;
then
if
[
"
${
s_pid
}
"
==
"
${
GP_PID
}
"
]
;
then
SCREEN_PID
=
${
s_pid
}
break
fi
...
...
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