Gitiles
Code Review
Sign In
192.168.1.100
/
YUKUAI_patch
/
86118913b4bf0e102d1cce3c6e5d35277b427cb7
/
.
/
rootfs
/
sbin
/
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