|
Lines 102-108
Link Here
|
| 102 |
|
102 |
|
| 103 |
local pids=`pgrep -d" " "$scriptname"` |
103 |
local pids=`pgrep -d" " "$scriptname"` |
| 104 |
local pid1=`echo "$pids" | cut -d" " -f1` |
104 |
local pid1=`echo "$pids" | cut -d" " -f1` |
| 105 |
local pid2=`echo "$pids" | cut -d" " -f3` |
105 |
local pid2=`echo "$pids" | cut -d" " -f2` |
| 106 |
|
106 |
|
| 107 |
if [ "$pid1" != "$pid2" ] |
107 |
if [ "$pid1" != "$pid2" ] |
| 108 |
then |
108 |
then |