Re: DISPLAY and using Perl's ptkdb to debug remote scripts
Re: DISPLAY and using Perl's ptkdb to debug remote scripts
- Subject: Re: DISPLAY and using Perl's ptkdb to debug remote scripts
- From: Jeremy Huddleston <email@hidden>
- Date: Tue, 27 Oct 2009 14:42:44 -0700
On Oct 27, 2009, at 14:32, email@hidden wrote:
I have a bunch of perl CGI scripts on a remote linux box. In the
past I
debugged these by setting the DISPLAY variable in the script to
point to my
mac (xray01.something.com) and fired up firefox and connected to the
html
page on the remote machine that starts the script.
With the move to Leopard and the new definition of DISPLAY on the
mac this
connection now generates the error:
couldn't connect to display "xray01.something.com:0.0" at
/usr/lib/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi/Tk/
MainWindow.pm
line 55.
I had a look in the message archive for this list but I see no
mention of
anyone using ptkdb. Is there a way to define the DISPLAY variable on
the
remote machine to allow a successful connection to mac/leopard?
There are quite a few messages on this list (or maybe xquartz-dev)
about this, but most of them are from early 2008. One issue is that
your perl module doesn't understand the launchd style DISPLAY
environment variable, so you won't be able to connect to the launchd
DISPLAY from your perl script
That being said, your perl script is remote, and you're not connecting
to the launchd socket. You're trying to connect via TCP/IP. This
issue has nothing to do with the launchd socket. You can either:
1) Relax your security settings in X11's preferences to allow this
connection (not so good)
2) Use ssh and don't manually set DISPLAY
Check out the list FAQ for more info on #2:
http://xquartz.macosforge.org/trac/wiki/X11-UsersFAQ#sshXforwardingdebugging
--Jeremy
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden