Bound command with timeout and kill bash

SIGTERM at 30s then SIGKILL after 5s grace; exit 124 means it was killed

timeout -k 5s 30s ./long_task.sh || echo "timed out: $?"