Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 ?

share|improve this question
Question is already answered here:… – Aron Rotteveel Mar 2 '10 at 15:59
up vote 6 down vote accepted

Prefix the command with nohup to keep it from terminating.

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.