Skip to content

Instantly share code, notes, and snippets.

@Clivern
Created May 1, 2017 10:30
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Clivern/a2afb4e13e1fe176c4a5b818ae84975c to your computer and use it in GitHub Desktop.
Run Process In BG & Get PID
foo &
FOO_PID=$!
# do other stuff
kill $FOO_PID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment