in reply to Trying to use IPC::Run under mod_perl

I know I said this before, but I really think you should ask this question on the mod_perl list. I guarantee that other people there have used IPC::Run with mod_perl, as well as other IPC approaches with pipes.
  • Comment on Re: Trying to use IPC::Run under mod_perl

Replies are listed 'Best First'.
Re^2: Trying to use IPC::Run under mod_perl
by robertlandrum (Initiate) on Dec 13, 2006 at 00:05 UTC
    I responded on the mod_perl list too. My suggestion is to abandon trying to make this work from mod_perl. The best thing to do would be to create a daemon process that listens for connections from your mod_perl handler and returns either image data, or drops files someplace where you can send img src links to.

    This daemon would also be in charge of closing files left open for more than say 10 minutes (the user has moved on by that point).

    None of this is going to scale, by the way. Converting PDFs to images isn't really something you want to do on the fly. Sure, it'll work, for the most part, but unless you're creating the document dynamically and then also creating the thumbnails dynamically from that, it's going to be more efficient to convert all of your PDFs to images ahead of time.