Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dumb SSH question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Dud3!
Tux's lil' helper
Tux's lil' helper


Joined: 19 Aug 2004
Posts: 93
Location: Boringville, Florida, USA

PostPosted: Tue Jan 23, 2007 7:14 pm    Post subject: Dumb SSH question Reply with quote

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
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Tue Jan 23, 2007 7:25 pm    Post subject: Reply with quote

Use screen.
Back to top
View user's profile Send private message
gotaserena
Apprentice
Apprentice


Joined: 23 Feb 2005
Posts: 153
Location: fourth worst city in the world

PostPosted: Tue Jan 23, 2007 7:28 pm    Post subject: Reply with quote

You just need to close stdin and stdout:
Code:
command &>/dev/null </dev/null &

and you can logout.
Back to top
View user's profile Send private message
DaveArb
Guru
Guru


Joined: 29 Apr 2004
Posts: 510
Location: Texas, USA

PostPosted: Tue Jan 23, 2007 7:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum