Last active
July 31, 2019 14:17
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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