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 ?
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