Following on from my first post on this subject, I've now found that IPC::Run does indeed work absolutely fine from the command line with the legacy Perl code that I'm using .. but the same Perl module does not work from within mod_perl, choosing instead not to return from IPC::Run's 'start' method.

Good old strace (hey, I'm an assembler guy from way back) reports that Something Bad Happened roughly in the area where the pseudo-ttys are being opened -- I see an Illegal seek when file descriptors 10 and 11 (/dev/ptmx and /dev/pts/3, respectively) are being addressed. There's also a cryptic read(12, "Can\'t locate object method \"CLOS"..., 10000) = 124 which is reminscent of the error I was getting from Apache::RequestRec earlier.

If someone has managed to get IPC::Run working under mod_perl, please let me know how .. otherwise, let this be a warning that Heere There Be Dragons. :) I would like to thank perrin for his suggestions and assistance here and on the mod_perl list -- I think this is one combination of technologies that just doesn't work, and I guess I'll be working on the Complicated Solution instead.

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds


In reply to Trying to use IPC::Run under mod_perl (2) by talexb

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.