Results 1 to 3 of 3
Hi all,
I'm trying to set up some backup scripts and am learning to copy files and directories from one server to another. I started to scp a file between ...
- 10-18-2011 #1Just Joined!
- Join Date
- Aug 2011
- Posts
- 10
login to a server, what happens to a process if I close my terminal?
Hi all,
I'm trying to set up some backup scripts and am learning to copy files and directories from one server to another. I started to scp a file between two remote servers (actually im not sure, is a server considered remote if I login to it using ssh and then use my scp command?) and then realized the copying was going to take hours, so I wanted to stop the copy but I dont know what command to issue, or how to gain control of the command line again from the currently running process of the scp. When I close the terminal does the process stop?
Thanks,
Erin
- 10-18-2011 #2
Yes, the scp will be killed.
To avoid that, you can use a cronjob. This is for scripts that shall be called at a designated time and without user interaction.
If you need/want to have an interactive shell, then a common way is to start a "screen" session, call your programs and then detach.
This page gives a short introduction to screen:
Linux Screen Tutorial and How To - rackAIDYou must always face the curtain with a bow.
- 10-18-2011 #3Just Joined!
- Join Date
- Aug 2011
- Posts
- 10
Thanks, thats exactly what I needed to know.


Reply With Quote