View previous topic :: View next topic |
Author |
Message |
midnite Guru
Joined: 09 Apr 2006 Posts: 435 Location: Hong Kong
|
Posted: Fri Jul 13, 2007 9:32 am Post subject: how to send process in ssh to background? |
|
|
i use sshd to access my gentoo from another computer. i found that when i close my sshd client (PuTTY), the process in my gentoo box stops also. It is very inconvenience for installing some large package; i have to keep two computers on! Is there some way to send the process to background, such that it will continue even if i close the ssh connection?
Last edited by midnite on Fri Jul 13, 2007 11:52 am; edited 1 time in total |
|
Back to top |
|
|
alex.blackbit Advocate
Joined: 26 Jul 2005 Posts: 2397
|
Posted: Fri Jul 13, 2007 9:41 am Post subject: |
|
|
didn't you start sshd with "/etc/init.d/sshd start" ?
that would make sshd run as a normal deamon until you do "/etc/init.d/sshd stop". |
|
Back to top |
|
|
Tintamarre n00b
Joined: 11 Jun 2007 Posts: 63 Location: Belgium
|
Posted: Fri Jul 13, 2007 9:50 am Post subject: |
|
|
You can use SCREEN |
|
Back to top |
|
|
alex.blackbit Advocate
Joined: 26 Jul 2005 Posts: 2397
|
Posted: Fri Jul 13, 2007 9:59 am Post subject: |
|
|
oh, what you meant was ssh, not sshd. yes, then screen is the weapon of choice. |
|
Back to top |
|
|
Sven Vermeulen Retired Dev
Joined: 29 Aug 2002 Posts: 1345 Location: Mechelen, Belgium
|
Posted: Fri Jul 13, 2007 10:55 am Post subject: |
|
|
I'm fully supportive of screen as well. Just in case you're looking for something else, use nohup for your process. More primitive, but might be your only option if you don't have screen and aren't an administrator of that system. _________________ Please add "[solved]" to the initial topic title when it is solved. |
|
Back to top |
|
|
JeliJami Veteran
Joined: 17 Jan 2006 Posts: 1086 Location: Belgium
|
|
Back to top |
|
|
midnite Guru
Joined: 09 Apr 2006 Posts: 435 Location: Hong Kong
|
Posted: Fri Jul 13, 2007 11:48 am Post subject: |
|
|
Thanks very much from all of your help!!
excuse me, in nohup, what is the meaning of "nice" ? |
|
Back to top |
|
|
Sven Vermeulen Retired Dev
Joined: 29 Aug 2002 Posts: 1345 Location: Mechelen, Belgium
|
Posted: Fri Jul 13, 2007 12:17 pm Post subject: |
|
|
With "nice" you can tell the operating system how "nice" your process should be for other processes.
The more "nice" it is to others, the more it'll allow others to obtain more CPU cycles than your process. So if you give a "nice" value of 20, your process will most likely run with the lowest possible priority. If you tell it to have a very low "nice" value (like -19) it'll attempt to run with an as high priority as possible. _________________ Please add "[solved]" to the initial topic title when it is solved. |
|
Back to top |
|
|
mark_alec Bodhisattva
Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
Posted: Fri Jul 13, 2007 12:38 pm Post subject: |
|
|
Moved from Networking & Security to Duplicate Threads.
See threads davjel posted. _________________ www.gentoo.org.au || #gentoo-au |
|
Back to top |
|
|
|