a guest May 20th, 2015 664 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- 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] /'
RAW Paste Data