JCA,
Well, it's clunky, but... could you not alter whatever init file is run on
the remote host, so that it writes the information you need to a file or
environment variable before you start screen on that host? I'm presuming
you're not using screen as the login shell on the remote host.
Assuming input of the form:
UserName pts/13 Aug 4 11:01 (A.domain.org)
you could have in .profile (or whatever):
export MYHOST=$(who am i | awk '{print $6}' | sed 's/[()]//g' )
And then use MYHOST to set DISPLAY (or indeed set DISPLAY in one go with
a similar command).
Or am I missing something?
--
Paul Dunne | http://lue.dyn.dhs.org/
This email is: [ ] bloggable [ ] ask first [x] private
_______________________________________________
screen-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/screen-users