From 0cb4f2b1acb16c1ee1bd86a40116300ea2e2cdaa Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期二, 26 一月 2021 10:18:30 +0800 Subject: [PATCH] update --- test_net_socket/net_mod_socket.sh | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test_net_socket/net_mod_socket.sh b/test_net_socket/net_mod_socket.sh index a54fca4..fc639ca 100755 --- a/test_net_socket/net_mod_socket.sh +++ b/test_net_socket/net_mod_socket.sh @@ -1,7 +1,7 @@ function server() { # 寮�鍚痓us - ./test_net_mod_socket --fun="start_bus_server" --key=8 & server_pid=$! && echo "pid: ${server_pid}" + ./test_net_mod_socket --fun="start_bus_server" & server_pid=$! && echo "pid: ${server_pid}" # 寮�鍚綉缁滆浆鍙戜唬鐞� ./test_net_mod_socket --fun="start_net_proxy" --port=5000 & server_pid=$! && echo "pid: ${server_pid}" @@ -18,7 +18,7 @@ ./test_net_mod_socket --fun="start_net_client" \ --sendlist="localhost:5000:100" \ - --publist="localhost:5000:8" + --publist="localhost:5000" } @@ -31,12 +31,12 @@ function mpub() { ./test_net_mod_socket --fun="test_net_pub_threads" \ - --publist="localhost:5000:8, localhost:5000:8" + --publist="localhost:5000, localhost:5000" } function close() { - ps -ef | grep -e "test_net_mod_socket" -e "net_mod_socket"| awk '{print $2}' | xargs -i kill -9 {} + ps -ef | grep -e "test_net_mod_socket" -e "heart_beat"| awk '{print $2}' | xargs -i kill -9 {} ipcrm -a } @@ -48,7 +48,6 @@ case ${1} in "server") - close server ;; "client") @@ -65,12 +64,13 @@ ;; "") close + sleep 2 server client ;; *) - echo "error input" + echo "argument input error" exit 1 ;; esac -- Gitblit v1.8.0