[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can screen tell me where I logged in from?

From: Phil!Gregory
Subject: Re: Can screen tell me where I logged in from?
Date: Fri, 8 Dec 2006 19:20:12 -0500
User-agent: Mutt/1.5.13 (2006-08-11)

* Eric Smith <address@hidden> [2006-12-08 10:07 +0100]:
> Is it possible to export a variable to a running screen session so
> that it is redefined when I reattach?
> Or do I have to attach screen via a wrapper script that writes
> location info to a file - which is messy.

You pretty much have to have a wrapper script to do this.  It could be as
simple as having a 'screen -X setenv SSH_CLIENT $SSH_CLIENT' in the
wrapper, but that would only update screen, not any shells or other
programs already running inside screen.  The best complete approach I can
think of does involve writing to a file in the wrapper and having
everything else check that file periodically.

-- contrarian of the first order... /
PGP: 026A27F2  print: D200 5BDB FC4B B24A 9248  9F7A 4322 2D22 026A 27F2
--- --
The meta-Turing test counts a thing as intelligent if it seeks to devise
and apply Turing tests to objects of its own creation.
                       -- Lew Mammel, Jr.
---- --- --

reply via email to

[Prev in Thread] Current Thread [Next in Thread]