Commit c54d2350 authored by drallensmith's avatar drallensmith

Note re -x in shell scripts

parent b061212b
...@@ -2,10 +2,11 @@ ...@@ -2,10 +2,11 @@
./bin/HFO --offense-agents=2 --defense-npcs=3 --offense-npcs=1 --trials 20 --headless & ./bin/HFO --offense-agents=2 --defense-npcs=3 --offense-npcs=1 --trials 20 --headless &
sleep 5 sleep 5
# -x is needed to skip first line - otherwise whatever default python version is will run # -x is needed to skip first line - otherwise whatever default python version is will run
python -x ./example/high_level_custom_agent.py --port 6000 &> agent1.txt & python ./example/high_level_custom_agent.py --port 6000 &> agent1.txt &
sleep 5 sleep 5
python -x ./example/high_level_custom_agent.py --port 6000 &> agent2.txt & python ./example/high_level_custom_agent.py --port 6000 &> agent2.txt &
# The magic line # The magic line
# $$ holds the PID for this script # $$ holds the PID for this script
......
...@@ -2,10 +2,12 @@ ...@@ -2,10 +2,12 @@
./bin/HFO --offense-agents=2 --defense-npcs=3 --offense-npcs=1 --trials 20 --headless & ./bin/HFO --offense-agents=2 --defense-npcs=3 --offense-npcs=1 --trials 20 --headless &
sleep 5 sleep 5
# -x is needed to skip first line - otherwise whatever default python version is will run
python -x ./example/high_level_custom_agent.py --eps 0.2 --port 6000 &> agent1.txt & # If wanting to test below with different python versions, add -x to avoid
# the #!/usr/bin/env python initial line.
python ./example/high_level_custom_agent.py --eps 0.2 --port 6000 &> agent1.txt &
sleep 5 sleep 5
python -x ./example/high_level_custom_agent.py --eps 0.2 --port 6000 &> agent2.txt & python ./example/high_level_custom_agent.py --eps 0.2 --port 6000 &> agent2.txt &
# The magic line # The magic line
# $$ holds the PID for this script # $$ holds the PID for this script
......
...@@ -2,9 +2,13 @@ ...@@ -2,9 +2,13 @@
./bin/HFO --offense-agents=2 --defense-npcs=1 --trials 20 --headless & ./bin/HFO --offense-agents=2 --defense-npcs=1 --trials 20 --headless &
sleep 5 sleep 5
python -x example/high_level_random_agent.py --port 6000 &> agent1.txt &
# If wanting to test below with different python versions, add -x to avoid
# the #!/usr/bin/env python initial line.
python example/high_level_random_agent.py --port 6000 &> agent1.txt &
sleep 5 sleep 5
python -x example/high_level_random_agent.py --port 6000 &> agent2.txt & python example/high_level_random_agent.py --port 6000 &> agent2.txt &
# The magic line # The magic line
# $$ holds the PID for this script # $$ holds the PID for this script
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment