4

Is there a way to start a process using ssh that doesn't terminate when the ssh session terminates? I want the job to keep running on the computer I'm ssh-ing into without me having to keep the connection open.

HighCommander4
  • 50,428
  • 24
  • 122
  • 194
  • While a good question, this does not really deal with programming. Voting to move to serverfault.com. – sleske Jun 24 '10 at 16:12

3 Answers3

6

you can use nohup (assuming you are SSHing into *nix server)

ghostdog74
  • 327,991
  • 56
  • 259
  • 343
5

You could use the screen utility.

Luke Quinane
  • 16,447
  • 13
  • 69
  • 88
  • +1 for screen. I use it start a long running process before I leave work. Then I detach the screen and I can check its progress later by reattaching to the screen session while logged in from home. – Dave Bacher Feb 03 '10 at 07:01
3

An alternative to screen is dtach. dtach is smaller and more lightweight - in fact it is just the detach part of the screen utility.

Dal Hundal
  • 3,234
  • 16
  • 21