JonEberger Posted October 25, 2006 Report Share Posted October 25, 2006 history: i did quite a few searches but found nothing here (or elsewhere) that really answered my problems. i found an application named "screen" but figure that surely ssh has this built into it. problem: i ssh frequently to my work machine (it's much faster than my laptop or desktop at home) to work at home (nighttimes frequently). but sometimes ssh times out (wireless networking dropped or session time expires). can i: 1.) ssh into my machine, start a process (typically running code), and then push it to the background allowing me to close the connection, but that program still run on the machine i logged into? and/or 2.) ssh into my workstation from home, then if i go to my workstation at work transfer my home session to the local session since i'm logging in as the same user? are these even possible? thanks guys, jon Quote Link to comment Share on other sites More sharing options...
paul Posted October 25, 2006 Report Share Posted October 25, 2006 bg process puts the process "on hold" so it will stop processing screen is the way to go WORK: ssh servername > screen >> gcc -0 out ........ ec etc etc >> [CTRL]d (note: ctrl d 'detaches' the screen but leaves it running) > logout HOME: ssh servername > screen -r (note: screen -r 're-attaches' a running screen session) I use it everyday :) Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted October 25, 2006 Report Share Posted October 25, 2006 screen is indeed wonderfull (btw, isn't it Ctrl+A, Ctrl+D instead?); the only drawback it has (not its fault) is that the DISPLAY variable is set at startup, so if you reattach your "screen" on a different machine, you have to set DISPLAY again (and ensure with xhost that the change will be OK). Yves. Quote Link to comment Share on other sites More sharing options...
paul Posted October 25, 2006 Report Share Posted October 25, 2006 quite right .. it is Ctrl+A, Ctrl+D Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted October 26, 2006 Report Share Posted October 26, 2006 Ctrl-a ? Gives you a list of other commands screen understands (accessible through Ctrl-a <<command key combination>>) Quote Link to comment Share on other sites More sharing options...
JonEberger Posted October 26, 2006 Author Report Share Posted October 26, 2006 thanks everybody. i'll put it to use immediately. :-) Quote Link to comment Share on other sites More sharing options...
SoulSe Posted October 27, 2006 Report Share Posted October 27, 2006 A bit late, but I'll also throw in my support for screen. I use it all the time - configure kernel, start compile, end session, go home, get back in, bzImage is ready to be moved to /boot. It's also a handy tool when you're bittorrenting ;) Quote Link to comment Share on other sites More sharing options...
JonEberger Posted November 28, 2006 Author Report Share Posted November 28, 2006 btw, i use screen religiously. thanks guys. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.