TarsCloud_TarsCpp/examples/scripts/run-push.sh
2020-04-01 20:29:29 +08:00

28 lines
521 B
Bash

#!/bin/bash
echo "run-co.sh"
EXE_PATH=$1
SRC_PATH=$2/..
echo ${EXE_PATH} ${SRC_PATH}
killall -9 PushServer
sleep 1
echo "start server: ${EXE_PATH}/PushServer --config=${SRC_PATH}/examples/PushDemo/PushServer/config.conf &"
${EXE_PATH}/PushServer --config=${SRC_PATH}/examples/PushDemo/PushServer/config.conf &
sleep 2
#-------------------------------------------------------------------------------------------------------
echo "client: ${EXE_PATH}/PushClient"
${EXE_PATH}/PushClient 5
killall -9 PushServer