#!/bin/bash FIRST="cargo run -- --debug-match --players 2 --local-port 7000 \ --net-player 0=local --net-player 1=127.0.0.1:7001" SECOND="cargo run -- --debug-match --players 2 --local-port 7001 \ --net-player 0=127.0.0.1:7000 --net-player 1=local" (trap 'kill 0' SIGINT; $FIRST & $SECOND)