* Eric Smith <[EMAIL PROTECTED]> [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. -- ...computer contrarian of the first order... / http://aperiodic.net/phil/ 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. ---- --- -- _______________________________________________ screen-users mailing list [email protected] http://lists.gnu.org/mailman/listinfo/screen-users
