lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | #/bin/sh |
2 | |||||
3 | TMPLINE=`ps|grep -s "[[:digit:]]\+:[[:digit:]]\+ \(/.*/\)*$1\>"` | ||||
4 | |||||
5 | if [ -z "${TMPLINE}" ]; then | ||||
6 | echo "nono" | ||||
7 | exit 127 | ||||
8 | else | ||||
9 | echo "${TMPLINE}"|awk '{print $1}' | ||||
10 | exit 0 | ||||
11 | fi | ||||
12 |