Gitiles
Code Review
Sign In
192.168.1.100
/
T106_DC
/
df7f8babc2c13f7adf53ff8e17580ae47c0e07bf
/
.
/
ap
/
app
/
Script
/
scripts
/
getpid.sh
blob: bb28f3f53c1e6c154eb253a87fe05e2d9c1e92ad [
file
] [
log
] [
blame
]
#/bin/sh
TMPLINE
=
`ps|grep -s "[[:digit:]]\+:[[:digit:]]\+ \(/.*/\)*$1\>"`
if
[
-
z
"${TMPLINE}"
];
then
echo
"nono"
exit
127
else
echo
"${TMPLINE}"
|
awk
'{print $1}'
exit
0
fi