Possible Duplicate:
How can I disown a running process and associate it to a new screen shell?
I launched a command that lasts a long time.
I had to disconnect so I moved it in the background (with CTRL+Z and bg
) before exiting.
Something like this:
$ my_command
***command is beeing executed and is taking a long time***
^Z
[1]+ Stopped my_command
$ bg
[1]+ my_command &
$ exit
I reconnected and can see the command in the process list but cannot recover with fg
.
$ fg
-bash: fg: current: no such job
How do I recover my job in the foreground?