#!/bin/bash./bin/HFO --offense-agents=2 --defense-npcs=3 --offense-npcs=1 --trials 20 --headless &sleep 5# -x is needed to skip first line - otherwise whatever default python version is will runpython2.7 -x ./example/high_level_custom_agent.py --numTeammates=2 --numOpponents=3 --rand-pass--port 6000 &> agent1.txt &sleep 5python3 -x ./example/high_level_custom_agent.py --numTeammates=2 --numOpponents=3 --rand-pass--port 6000 &> agent2.txt &# The magic line# $$ holds the PID for this script# Negation means kill by process group id instead of PIDtrap"kill -TERM -$$" SIGINTwait