From e81803a53d38d04e509fac09d2e068091fdb7bd5 Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Tue, 19 Mar 2024 15:21:01 +0800 Subject: [PATCH] scripts for Mac --- scripts/lib/util.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/lib/util.sh b/scripts/lib/util.sh index 5cbe32d8b..993ddcae1 100755 --- a/scripts/lib/util.sh +++ b/scripts/lib/util.sh @@ -414,9 +414,10 @@ openim::util::check_process_names() { # If there are PIDs, loop through each one for pid in "${pids[@]}"; do echo aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa - local command=$(ps -p $pid -o cmd=) + local command=$(ps -p $pid -o comm=) + + echo "ps -p $pid -o comm=" - echo "ps -p $pid -o cmd=" local start_time=$(ps -p $pid -o lstart=) local port=$(get_port $pid)