Skip to content

Instantly share code, notes, and snippets.

@ozzieperez
Last active July 31, 2019 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ozzieperez/54c380e1e26bc2cf8b3d37d6919c0a5e to your computer and use it in GitHub Desktop.
Save ozzieperez/54c380e1e26bc2cf8b3d37d6919c0a5e to your computer and use it in GitHub Desktop.
Ubuntu Linux: Run command independent/detached from your session so it continues after exiting
# run the command with nohup
nohup npm run my-process &
# check that it's running
jobs
# detach your session from that job
disown -h %1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment