The code need to run under mod_perl 2 and apache 2.2.
The specified web page will have connections to Oracle and PostgreSQL to get information, then using a form you will select information and the submit will execute an os executable to perform certain tasks depending on selection. A similar web page use to run perfect under apache 1.3 and mod_perl 1 using "system($command)" to run the os command, but when doing this via the later versions the web browser hangs, but the command is executed fine. The command is executed but the web pages is waiting for it. The command executes in under 3 seconds. After doing some research a came accross the Apache2::SubProcess, which should allow me to execute the command and the web page should be able to then function as normal and not hang. After the command is executed the page will display the command output (reading a file and printing it to screen).

The versions of software we use is:
Apache/2.2.0 (Unix) mod_perl/2.0.2 Perl/v5.8.5, running on RHES 4.

In reply to Re^2: Need help with Apache2::Subprocess undefined value error when using spawn_proc_prog by aels
in thread Need help with Apache2::Subprocess undefined value error when using spawn_proc_prog by aels

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.