View previous topic :: View next topic |
Author |
Message |
Dud3! Tux's lil' helper


Joined: 19 Aug 2004 Posts: 93 Location: Boringville, Florida, USA
|
Posted: Tue Jan 23, 2007 7:14 pm Post subject: Dumb SSH question |
|
|
I haven't had SSH running on my boxes for a while due to some dumb people's threats but now I've got it going again and I was wondering about something that bothered me before when I used it a lot.
Is there anyway to log in, issue a command (such as emerging something) then log out without it terminating? _________________ "There's no problem so large it can't be solved by killing the user off, deleting their files, closing their account and reporting their REAL earnings to the IRS" |
|
Back to top |
|
 |
magic919 Advocate

Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Tue Jan 23, 2007 7:25 pm Post subject: |
|
|
Use screen. |
|
Back to top |
|
 |
gotaserena Apprentice


Joined: 23 Feb 2005 Posts: 153 Location: fourth worst city in the world
|
Posted: Tue Jan 23, 2007 7:28 pm Post subject: |
|
|
You just need to close stdin and stdout:
Code: | command &>/dev/null </dev/null & |
and you can logout. |
|
Back to top |
|
 |
DaveArb Guru

Joined: 29 Apr 2004 Posts: 510 Location: Texas, USA
|
Posted: Tue Jan 23, 2007 7:36 pm Post subject: |
|
|
magic919 wrote: | Use screen. |
++, screen is serious cool.
The old-timey way is to use nohup and place it in the background. You cannot reconnect to it, and need to redirect your output streams. |
|
Back to top |
|
 |
|