mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 20:02:10 +08:00
13 lines
206 B
Bash
Executable File
13 lines
206 B
Bash
Executable File
#!/bin/bash
|
|
|
|
pkill -f cartpole_server.py
|
|
(python cartpole_server.py 2>&1 | grep -v 200) &
|
|
pid=$!
|
|
|
|
while ! curl localhost:9900; do
|
|
sleep 1
|
|
done
|
|
|
|
python cartpole_client.py --stop-at-reward=100
|
|
kill $pid
|