1 2 3 4 5 6 7 8 9 10
#!/bin/bash SELF=$(realpath $(which "$0")) cd "$(dirname "$SELF")" trap 'kill %1 %2 %3' SIGHUP SIGINT SIGQUIT SIGABRT SIGTERM ( cd login && tmwa-login ) & ( cd world && tmwa-char ) & ( cd world/map && tmwa-map ) & wait