Browse Source

Update run.sh

dev
Guoyun Tian GitHub 1 year ago
parent
commit
5f43c8432a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      dependency/shell/run.sh

+ 4
- 3
dependency/shell/run.sh View File

@@ -184,6 +184,7 @@ elif [ "$TERMINAL" = "CLIENT" ]; then
echo "find ./$code_name" echo "find ./$code_name"


command="nice -0 ./$code_name -I $CONNECT_IP -P $PORT -p $j > $playback_dir/team$k-player$j.log 2>&1" command="nice -0 ./$code_name -I $CONNECT_IP -P $PORT -p $j > $playback_dir/team$k-player$j.log 2>&1"
retry_command "$command" &


ps -aux |grep $code_name ps -aux |grep $code_name


@@ -202,7 +203,7 @@ elif [ "$TERMINAL" = "CLIENT" ]; then


command="nice -0 python3 $python_main_dir$i/PyAPI/main.py -I $CONNECT_IP -P $PORT -p $j > $playback_dir/team$k-player$j.log 2>&1" command="nice -0 python3 $python_main_dir$i/PyAPI/main.py -I $CONNECT_IP -P $PORT -p $j > $playback_dir/team$k-player$j.log 2>&1"


retry_command "$command"
retry_command "$command" &


ps -aux |grep main.py ps -aux |grep main.py
elif [ -f "./$code_name" ]; then elif [ -f "./$code_name" ]; then
@@ -210,7 +211,7 @@ elif [ "$TERMINAL" = "CLIENT" ]; then


command="nice -0 ./$code_name -I $CONNECT_IP -P $PORT -p $j > $playback_dir/team$k-player$j.log 2>&1" command="nice -0 ./$code_name -I $CONNECT_IP -P $PORT -p $j > $playback_dir/team$k-player$j.log 2>&1"


retry_command "$command"
retry_command "$command" &


ps -aux |grep $code_name ps -aux |grep $code_name
else else
@@ -220,7 +221,7 @@ elif [ "$TERMINAL" = "CLIENT" ]; then


# curl $CONNECT_IP:$PORT # curl $CONNECT_IP:$PORT


sleep $((GAME_TIME * 2))
sleep $((GAME_TIME + 90))


popd popd
else else


Loading…
Cancel
Save