commit | 824eb0c6ade808c4501e62fbcf0025f4e694cd11 | [log] [tgz] |
---|---|---|
author | yuezonghe <zh.yue@mobiletek.cn> | Thu Jun 27 02:32:26 2024 -0700 |
committer | yuezonghe <zh.yue@mobiletek.cn> | Thu Jun 27 02:44:13 2024 -0700 |
tree | 13cee949649ece72b1c31aba2eea600eea6614d6 | |
parent | 703a1d3d22068e43b7bb3d63b3020b975fee9c3f [diff] [blame] |
zte's code,first commit Change-Id: I9a04da59e459a9bc0d67f101f700d9d7dc8d681b
diff --git a/ap/app/Script/scripts/getpid.sh b/ap/app/Script/scripts/getpid.sh new file mode 100644 index 0000000..bb28f3f --- /dev/null +++ b/ap/app/Script/scripts/getpid.sh
@@ -0,0 +1,12 @@ +#/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 +