blob: bb28f3f53c1e6c154eb253a87fe05e2d9c1e92ad [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001#/bin/sh
2
3TMPLINE=`ps|grep -s "[[:digit:]]\+:[[:digit:]]\+ \(/.*/\)*$1\>"`
4
5if [ -z "${TMPLINE}" ]; then
6 echo "nono"
7 exit 127
8else
9 echo "${TMPLINE}"|awk '{print $1}'
10 exit 0
11fi
12