Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

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.