Skip to content

Instantly share code, notes, and snippets.

@mrprajesh
Created July 29, 2019 09:11
Show Gist options
  • Save mrprajesh/db469ddd76efbcab4603cb79ed76684f to your computer and use it in GitHub Desktop.
Save mrprajesh/db469ddd76efbcab4603cb79ed76684f to your computer and use it in GitHub Desktop.
How to run jobs in background even after you exit the ssh/shell terminal

Run Jobs in Background

  1. ssh serverHostNameOrIP
  2. On server, again ssh serverHostNameOrIP
  3. run the jobs using nohup <executable> &
  4. Ctrl+D // logout
  5. Ctrl+D // logout
  6. Close the terminal window.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment