blob: bb28f3f53c1e6c154eb253a87fe05e2d9c1e92ad [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -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