• Martin Thoma
  • Home
  • Categories
  • Tags
  • Archives
  • Support me

Start long running processes via SSH

Contents

  • Start long running processes via SSH
    • Screen
      • Basic usage
      • Named sessions
    • nohup
    • See also

Screen

screen is a nice tool that can be used to detach long running processes from the current SSH session - and be able to get it again!

Basic usage

You start it with

$ screen

You detach it with Ctrl + a and then d. After you pressed this key combination, you will see

[detached]

You get it back again with:

$ screen -r

Named sessions

You can start a named session with

$ screen -S foo

and get it back with

$ screen -r foo

nohup

$ nohup command &

See also

  • 10 Screen Command Examples to Manage Linux Terminals
  • Matt Cutts: A quick tutorial on screen
  • Screen User's Manual

Published

Aug 11, 2014
by Martin Thoma

Category

Code

Tags

  • nohup 1
  • screen 1
  • Software Development 15
  • SSH 4

Contact

  • Martin Thoma - A blog about Code, the Web and Cyberculture
  • E-mail subscription
  • RSS-Feed
  • Privacy/Datenschutzerklärung
  • Impressum
  • Powered by Pelican. Theme: Elegant by Talha Mansoor