mirror of
https://github.com/vale981/ray
synced 2025-03-08 19:41:38 -05:00
12 lines
206 B
Bash
Executable file
12 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
|