[Catalyst] Running system commands under FastCGI with IPC::Cmd / IPC::Run

Toby Corkindale toby at dryft.net
Fri Oct 22 04:34:59 GMT 2010

On 22 October 2010 05:43, Ian Sillitoe <ian at sillit.com> wrote:
> I have a Catalyst model that runs a system command as part of a search
> facility. The system call only takes a fraction of a second so is processed
> inline and this all works fine when tested outside of Catalyst and when
> called under the Catalyst standalone server. However, when I deploy it to my
> FastCGI environment I have problems - everything seems to work fine apart
> from the results of the system call.
> The system call is (give or take):
>     IPC::Cmd::run(
>             command => [qw/ blastall -d sequences.db -i input.fa -o
> output.results /],
>             verbose => 0,
>             timeout => 10,
>         );

I recall that IPC::Run certainly has known-issues when used under
FastCGI, and I'm guessing they extend to IPC::Cmd too.

Have a look at IPC::Run::SafeHandles which I think got around it.


More information about the Catalyst mailing list