Is there a way to call Perl/Tk from Apache server

O

oracle

Hi

I am new to Tk and tried to run a program from Apache.....

It looked good when I ran it from my server! But it only works on my
server....

I have tried to use Xvfb to export the window but just not wining....

I am on a Redhat linux box with Perl 5.8

help please.

Robert
 
J

John Bokma

oracle said:
Hi

I am new to Tk and tried to run a program from Apache.....

Err... how do you want to control it? Or do you just want to start it?
It looked good when I ran it from my server! But it only works on my
server....

Yes, since you see the window(s).
I have tried to use Xvfb to export the window but just not wining....

Export to where? Apache can not send a window to the browser. Or do you
want to send a bitmap of the window?
 
O

oracle

Thanks John,

What I trying to say is;

If one creates a form using Perl, It can be displayed in a browser.
I was hoping to be able to do the same with the Perl/Tk pogrom too!

Its seems that I need to write PPL and use plug-in....
Or just use Perl.

Unless there is a way to send execute ../cgi-bin/tk-test and send the
GUI to user session....

Robert
 
J

James Willmore

What I trying to say is;

If one creates a form using Perl, It can be displayed in a browser. I was
hoping to be able to do the same with the Perl/Tk pogrom too!

Its seems that I need to write PPL and use plug-in.... Or just use Perl.

Unless there is a way to send execute ../cgi-bin/tk-test and send the GUI
to user session....

There was a Perl-Tk plugin project that was started some time ago, but I
think it's dead now.

http://sourceforge.net/projects/perlplusplugin/

If nothing else, you may get some ideas from thier project to incorporate
into yours.

HTH

--
Jim

Copyright notice: all code written by the author in this post is
released under the GPL. http://www.gnu.org/licenses/gpl.txt
for more information.

a fortune quote ...
In those days he was wiser than he is now -- he used to
frequently take my advice. -- Winston Churchill
 
J

Joe Smith

oracle said:
Unless there is a way to send execute ../cgi-bin/tk-test and send the
GUI to user session....

You can send a screenshot to the user as a GIF or PNG image, but you
cannot send the GUI to the user with just HTTP. You'll need a TCP-aware
GUI running on the end user's computer, like a Java applet.
-Joe
 
J

Joe Smith

oracle said:
If one creates a form using Perl, It can be displayed in a browser.
I was hoping to be able to do the same with the Perl/Tk pogrom too!

You can use Perl/Tk running on your computer _instead_ of a browser,
not in a browser. It's something that you install on a client, not server.
-Joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,147
Messages
2,570,835
Members
47,382
Latest member
MichaleStr

Latest Threads

Top