[Newlug] screen command
Jeffery L. JT Vogt
lfm at scortch.unisrv.net
Tue Aug 12 21:15:04 CDT 2003
>Is it possible to ssh into a server, run a command, then later on go to the
>server itself and attach the pid of the remote session to a local terminal
>window? I thought it was possible to do this using the screen command, but
>I'm having trouble with it.
screen -r
-r [pid.tty.host]
resumes a detached screen session. No other options
(except "-d -r" or "-D -r") may be specified, though
an optional prefix of [pid.]tty.host may be needed to
distinguish between multiple detached screen sess-
ions.
Actually, you want to "transport" the session from one screen to
another, so you want -D -r:
-d|-D [pid.tty.host]
does not start screen, but detaches the elsewhere
running screen session. It has the same effect as
typing "C-a d" from screen's controlling terminal. -D
is the equivalent to the power detach key. If no
session can be detached, this option is ignored. The
combination "screen -D -r" can be used to `transport'
the elsewhere running session to this terminal and
logout there. Note: It is a good idea to have the
status of your sessions checked by means of "screen
-list".
-JT
------------------------------------------------------------------------------
"If Bill Gates had a dime for every time a Windows box crashed...
... Oh, wait a minute, he already does."
- Seen on the net
PETA SUPPORTS TERRORISM!
STOP PETA NOW!
Find out the TRUTH about the Animal Rights Agenda - Email apropos at unisrv.net
Unix, Networking and ISP Consulting lfm at unisrv.net
http://www.unisrv.net MSTie# 21756
More information about the Newlug
mailing list