Run multiple tasks from one script and kill them all on ctrl+c Took my dumbass two hours to figure this out #!/bin/bash trap "exit" INT TERM ERR trap "kill -s KILL 0" EXIT ./startProcess1 & ./startProcess2 & ./startProcess3 & wait