Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- trap 'kill %1; kill %2' SIGINT
- command1 | tee 1.log | sed -e 's/^/[Command1] /' &
- command2 | tee 2.log | sed -e 's/^/[Command2] /' &
- command3 | tee 3.log | sed -e 's/^/[Command3] /'
Add Comment
Please, Sign In to add comment