in reply to Display perl code output in CGI script

How to display the output of Progress_Bar.pl in main.pl when the image is clicked?

Capture the output of Progress_Bar.pl, and send the HTTP back to the browser.

But, seeing how Progress_Bar.pl is a GUI program, and you're probably expecting screenshots of some sort, you'll have to take screenshots

See

See learn about the internet and learn about the internet

  • Comment on Re: Display perl code output in CGI script

Replies are listed 'Best First'.
Re^2: Display perl code output in CGI script
by Anonymous Monk on Dec 21, 2011 at 12:48 UTC
Re^2: Display perl code output in CGI script
by asha_mail (Novice) on Dec 21, 2011 at 08:56 UTC

    Instead of taking screenshots I actually want the window of Progress_bar.pl to run.

      This is not possible. Browsers do not support Tk.
      Update: The CGI script runs on the server. It sends data to the client - a browser. What data do you imagine being sent to a browser to make it show the Tk application?

      Instead of taking screenshots I actually want the window of Progress_bar.pl to run.

      Um, whose screenshots do you think you'll be taking?

      The Progress_bar.pl will run on the server, and main.pl will be taking screenshots of Progress_bar.pl

      Progress_bar.pl doesn't run in the browser, or the browsers computer (client), it runs on the same computer main.pl runs, it runs on the server

      If you want the browser computer (client) to run a program, they'll need to have perl installed, and browser configured to execute any perl programs downloaded ... or browser configured to execute any .exe files downloaded, and you send them a PAR::Packer/pp-packed perl program (or using perlapp or perl2exe...)

      See the above links I provided, watch the video, read the tutorials, learn how the internet works :)

        Then how can integrate functionalities of PERL function in main.pl. How can I create an interactive GUI using perl and use it in main.pl?