A utility command to start other commands in the background.
If one of them dies, all of them are terminated.
The exit code is set to the exit code of the first terminated process.
Ctrl-C terminates them as well.
This program relieves you of ugly tasks like implementing
trap in shell scripts or fighting against subprocess absorbing
#!/usr/bin/env python commands = [ "runhaskell Testserver.hs", "python -m SimpleHTTPServer 7357", ] if __name__ == '__main__': import runtogether runtogether.runtogether(commands)