how to foreground after backgrounding and closing shell?

I secure-copied (scp) a file from one box to another. I ctrl-z, I
backgrounded, and then quit/exited the parent shell (konsole). I can
see the job is still running with “ps aux” but I have no access to it
anymore. I can’t view the ‘progress bar’ to see … well … the
PROGRESS!

Can I foreground it again somehow? I googled - but nothing.


NVIDIA! Listen to your customers! We want Free drivers.
‘Petition #1’ (http://www.petitiononline.com/nvfoss/petition.html).
‘Petition #2’ (http://www.opentheblob.com/nvidia/index.php). Use your
VOICE! Sign the petitions!

felipe1982’s Profile: http://forums.opensuse.org/member.php?userid=1152
View this thread: http://forums.opensuse.org/showthread.php?t=405872

use the fg command to bring it back to the forground


My Karma ran over your dogma.
Unknown

linuxfan50’s Profile: http://forums.opensuse.org/member.php?userid=11477
View this thread: http://forums.opensuse.org/showthread.php?t=405872

You can’t reconnect it to a terminal again.

Next time you want to do some long operation but you also want to watch
the progress at intervals from different terminals, have a look at the
program “screen”. It starts off a terminal session with a CLI shell and
you can detach the session and reattach later. Something like this

Code:

$ screen

in new session now

$ some long command
Ctrl-A D

session detached, back at original shell

$

Sometime later, from -anywhere-:

Code:

$ screen -r

reattached to floating session

your command may or may not have finished



ken_yap

ken_yap’s Profile: http://forums.opensuse.org/member.php?userid=221
View this thread: http://forums.opensuse.org/showthread.php?t=405872