[ubuntu-uk] Backgrounding shell commands
Chris Rowson
christopherrowson at gmail.com
Fri Jun 1 23:30:56 BST 2007
Hi all,
Quick question on shell commands.
I understand that to background a shell command, you need to end the
command with &
I also get that if you have a command running, pressing Ctrl and Z
suspends it, then typing bg puts it into the background (fg bringing
it forward again).
When I run this command on a remote server however 'scp -r foldername
root at server.com:/home/foldername' and background it (either by
starting it with &, or suspending then bg'ing it) and then close the
terminal, when I then log back in again, the process has stopped
without completing.
What's happening there? Is the command associated with the terminal
that invoked it? If so how to I get the command to run even after I've
logged out?
Thanks in advance ;-)
Chris
More information about the ubuntu-uk
mailing list