[ubuntu-uk] Backgrounding shell commands
Andrew Price
andy at andrewprice.me.uk
Fri Jun 1 23:53:57 BST 2007
On 01/06/07 23:30, Chris Rowson wrote:
> 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?
Have a look at the command "screen" or alternatively "nohup". They work
differently but both should do what you want.
--
Andy Price
http://andrewprice.me.uk
More information about the ubuntu-uk
mailing list