mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-24 07:51:52 +08:00
test: use pgrep command
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
pid=""
|
||||
|
||||
if command -v ps &> /dev/null; then
|
||||
pid=$(ps -ef | grep weblogic | grep -v grep | awk '{print $2}')
|
||||
pid=$(pgrep -f weblogic)
|
||||
fi
|
||||
|
||||
if [ -z "$pid" ]; then
|
||||
|
||||
Reference in New Issue
Block a user