Skip to content

Instantly share code, notes, and snippets.

@bkmeneguello
Created February 19, 2013 20:15
Show Gist options
  • Save bkmeneguello/4989500 to your computer and use it in GitHub Desktop.
Save bkmeneguello/4989500 to your computer and use it in GitHub Desktop.
#!/bin/bash
trap '<some command>' EXIT #XXX of SIG_XXX
<more commands> & #send to bg
wait #wait bg commands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment