Browse Source

Update run.sh

tags/0.1.0
Changli Tang GitHub 2 years ago
parent
commit
f7261bbfdc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      dependency/shell/run.sh

+ 10
- 0
dependency/shell/run.sh View File

@@ -4,6 +4,7 @@ python_dir=/usr/local/PlayerCode/CAPI/python/PyAPI
playback_dir=/usr/local/playback playback_dir=/usr/local/playback


nice -10 ./Server --port 8888 --studentCount 4 --trickerCount 1 --gameTimeInSecond 600 --url $URL --token $TOKEN --fileName $playback_dir/video > $playback_dir/server.log & nice -10 ./Server --port 8888 --studentCount 4 --trickerCount 1 --gameTimeInSecond 600 --url $URL --token $TOKEN --fileName $playback_dir/video > $playback_dir/server.log &
server_pid=$!
sleep 5 sleep 5
for k in {1..2} for k in {1..2}
do do
@@ -37,3 +38,12 @@ do
fi fi
popd popd
done done

ps -p $server_pid
while [ $? -eq 0 ]
do
sleep 1
ps -p $server_pid
done

echo "Finish"

Loading…
Cancel
Save