Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding my $DISPLAY programatically.



But you implied that it was working until the local $DISPLAY value
changed to the new  launchd format. I still don't see how that has any
effect on what remote display strings look like.





On 5/2/08, Robert Tillyard <email@hidden> wrote:
>
> On 2 May 2008, at 15:42, Mark J. Reed wrote:
>
> > On Fri, May 2, 2008 at 10:38 AM, Robert Tillyard
> > <email@hidden> wrote:
> >> I use rexec to get the remote applications to run which works
> >> pretty well,
> >> however, I'm currently having to hard code the DISPLAY to <my IP>:0.0
> >> because the remote systems don't understand the launchd style
> >> DISPLAY.
> >
> > I don't understand.  How do the remote systems deal with even a
> > non-launchd-style *local* DISPLAY value, e.g. just plain :0 without a
> > hostname?  Something must already be translating that somewhere.
> >
> > Why not use ssh instead of rexec, with its X11 tunnelling that
> > automatically sets the remote DISPLAY appropriately?
> >
> > --
> > Mark J. Reed <email@hidden>
>
> At present I am hard coding the DISPLAY to their IP address with :0.0
> tacked on, so for my computer that would be 172.16.1.1:0.0 which the
> remote end does understand.
>
> Some of the remote systems are quite old and don't all have ssh and in
> order to use ssh I need to get the users user name and password into
> the command line but there is no -password option to ssh and even if
> there was another user could see the password by doing a ps.
>
> I'm hoping that it is easier to find a valid DISPLAY that a remote
> host will recognise that it is to convert the application to use ssh.
> If that's not possible then I will have to restrict the Macs to have
> only one user at a time and if X11 crashes they'll have to reboot it
> but I'd like to be more friendly than that if I can.
>
> Regards, Rob.
>

-- 
Sent from Gmail for mobile | mobile.google.com

Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden

References: 
 >Finding my $DISPLAY programatically. (From: Robert Tillyard <email@hidden>)
 >Re: Finding my $DISPLAY programatically. (From: "Mark J. Reed" <email@hidden>)
 >Re: Finding my $DISPLAY programatically. (From: Robert Tillyard <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.