in reply to How to interpret this Perl Tk.pm error?

Your test script runs fine locally. Are you sure that you want to open an X connection through a cgi interface? I hope not.

Typically, one would open a remote X session through 'ssh -X host' with proper authentication all round.

After Compline,
Zaxo

  • Comment on Re: How to interpret this Perl Tk.pm error?

Replies are listed 'Best First'.
Re: Re: How to interpret this Perl Tk.pm error?
by newbie00 (Beadle) on Dec 14, 2001 at 00:39 UTC
    Thank you for your reply. I do not know what 'X session' or a 'ssh -X host' or '.Xauth' or 'rc files' are, therefore I cannot answer your question.

    Shown below, is my reply to someone who just replied to my question. Maybe this can shed some more light on my 'newbie-knowledge' or lack thereof.

    I am open for alternative methods for using this module if those methods are available. I am also open to other alternatives if this module is not for what I am seeking for my scripts. Here is my reply to the other reply I received:
    ~~~~~~~~~~~~~~~~

    "I guess I have a misconception about the Tk.pm module.

    After reading about its features, I was under the impression that this module could be used to add graphics to my scipts so that anyone who invokes a script that uses Tk.pm will all see the graphics.

    Based on the responses, it appears that 'individual' computer terminals must set a parameter on their computer in order to see the graphics, which is why I have to set the '$Display' parameter on my computer to my IP address. Is this correct?

    If so, is there another way to integrate graphics into Perl scripts via a 3rd party software program or other method?"
    ~~~~~~~~~~~~~~~

    Thank you. --newbie00

      Tk allows you to write perl programs with a graphical user interface - you know, buttons to click, entry fields to type in text - a nice 'point and click' interface. Is this what you want to do?

      If you really do just want to 'add graphics' to your scripts I think additional information is necessary. What sort of graphics do you want to add? For charts and graphs you might want to check out the GD.pm module.

        Thanks for your reply.

        I just want to create a 'Windows'-type environment for the visitors of my website.

        I was looking for a way whereby each user would NOT have to set the $Display var on their individual terminals. I also needed to be able to have this graphical interface to be available to various platforms.

        My understanding now, is that it is not that simple and using this interface in this uncontrolled arena may possibly open up a security 'hole' (I'm not exactly sure how, but may provide access to the shell?).

        What are your thoughts?

        Thanx. --newbie00