2

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 .

isoman
  • 669

1 Answers1

5

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.

psusi
  • 37,551