Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
1  
Question is already answered here: serverfault.com/questions/41467/… –  Aron Rotteveel Mar 2 '10 at 15:59

1 Answer 1

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

 
discard

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.