Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I have launched a long running process from ssh in background . Unfortunatly my connexion crashed . Now I'm trying to recover this process but when I execute fg it didn't detect it . How can I bring it back to foreground ?

Thanks .

share|improve this question

You don't. Typically such processes are killed when you disconnect, unless they ignore SIGHUP. If you want to be able to reconnect to long running programs like that, you need to use something like screen on the target computer and run the program under the screen session, which allows you to disconnect and reconnect.

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.