Re: Finding my $DISPLAY programatically.
Re: Finding my $DISPLAY programatically.
- Subject: Re: Finding my $DISPLAY programatically.
- From: Bill Janssen <email@hidden>
- Date: Fri, 2 May 2008 13:18:13 PDT
- Comments: In-reply-to Jeremy Huddleston <email@hidden> message dated "Fri, 02 May 2008 11:16:13 -0700."
> > Some of the remote systems are quite old and don't all have ssh
>
> Is there any reason why you can't install ssh on these ancient machines?
Jeremy, asking this poor fellow to run around and find an SSH server
to run on 10-year-old SunOS machines (if that's what he has -- it's
what I have, so I'm projecting here), then install it on all of those
machines (thousands?), when he obviously has no need for it, just so
that Apple's X11 will continue to work for him on newer Apple
machines, is a bit much.
> Is there a way to programmatically translate the launchd style DISPLAY
> (i.e. /tmp/launch-idaF18/:0) into a usable DISPLAY (i.e.
> 172.16.1.1:0.0)?
How about
#!/bin/sh
MYIP=`ifconfig -a | grep 'inet' | grep 'broadcast' | awk '{print $2}'`
echo `echo $DISPLAY | sed -e "s;^.*:;${MYIP}:;"`
??
Bill
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden