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.



At 15:38 +0100 2/5/08, Robert Tillyard wrote:
Hello,

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)?

Some background:

Our main system is made up of lots of X11 applications running on one or more remote UNIX servers. The user would have a Mac with a Cocoa application that I have written to provide a menu system for launching various parts of our system on the remote hosts.

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.

Use ssh -Y instead and your problem's gone away.

If you want to keep a similar ease of login you can use a passwordless keyphrase to automate the remote login.

Kind regards,

				     Dave
_______________________________________________
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>)



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.