Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ssh question [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
addeman
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 181
Location: Stockholm, Sweden

PostPosted: Thu Jan 27, 2005 8:00 pm    Post subject: ssh question [solved] Reply with quote

Hello out there.. I'm, sitting here planing to do some emerge -e system on my routerbox, which also runs as a printer/fileserver... As that box is down in the basement with no attached keyboard or screen, i'm doing everything via ssh...

Now, I just wonder (being a noob) if there is any way to start some emerge via ssh and then exit the ssh-session with the emerge still running? Is it sufficient to background the emerge?

regards addeman


Last edited by addeman on Thu Jan 27, 2005 8:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Thu Jan 27, 2005 8:04 pm    Post subject: Reply with quote

Code:
emerge screen


Start screen, detach the session, and you can safely log out of ssh ;-)
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
nizar
Apprentice
Apprentice


Joined: 19 Dec 2003
Posts: 268
Location: localhost

PostPosted: Thu Jan 27, 2005 8:07 pm    Post subject: Reply with quote

Or simply use nohup and &, for example:
Code:

nohup emerge -vuD world&
Back to top
View user's profile Send private message
psychomunky
Guru
Guru


Joined: 02 Nov 2004
Posts: 337
Location: Canada

PostPosted: Thu Jan 27, 2005 8:19 pm    Post subject: How to get it back Reply with quote

if you want to check the progress of the emerge, log into the box and issue the following if you started with screen:

Code:

screen -r


For nohup, you can watch the progress by tailing the nohup.out file:

Code:

tail -f nohup.out
Back to top
View user's profile Send private message
addeman
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 181
Location: Stockholm, Sweden

PostPosted: Thu Jan 27, 2005 8:34 pm    Post subject: Reply with quote

Thank you, saved me a nights sleep ;)

best redards addeman
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Thu Jan 19, 2006 6:11 pm    Post subject: Reply with quote

Moved from Networking & Security to Duplicate Threads in favour of SSH: keep login active/Login to a previously started session.
_________________
KDE
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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