0

a simple question to one who knows...

I want to run a program in a Linux shell (ssh2) I run the program with '&' so it should run on the background

But when I end the session , the program aborts.

How can I make the program run until finished and be able to fg it when I reconnect ?

Dani
  • 531
  • 3
  • 11
  • 24
  • 1
    Question is already answered here: http://serverfault.com/questions/41467/linux-background-process-linked-to-terminal-window – Aron Rotteveel Mar 02 '10 at 15:59

1 Answers1

6

Prefix the command with nohup to keep it from terminating.

To resume the program, run the program within a screen session.

Warner
  • 23,756
  • 2
  • 59
  • 69