On 22 October 2010 05:43, Ian Sillitoe <[email protected]> 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. Toby _______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
