[Top][All Lists]

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

Re: Setting DISPLAY on the screen shell

From: Paul Dunne
Subject: Re: Setting DISPLAY on the screen shell
Date: Thu, 04 Aug 2005 19:32:22 -0000


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 (

 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 |
This email is: [ ] bloggable [ ] ask first [x] private

reply via email to

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