[Catalyst] System call problem
florent.angly at gmail.com
Fri Dec 19 13:13:11 GMT 2008
My Catalyst application uses an external Perl module that needs to call
an external application using the Perl system() command. This Perl
module works fine on its own (no error message when the external app is
called). However, whenever used from within my Catalyst application
thtough the Catalyst test server, the return status of the system() call
is always -1 (failure, success is 0), even though the call seems to be
executing just fine (valid output files are produced).
This is the system call:
> system(@formatdb_cmd) == 0 or die("Could not run command:
I tried to implement the system call with IPC::Run, but it just did the
> IPC::Run::run(\@formatdb_cmd) or die "Could not run command:
Any idea what is going wrong? Do I need to do something in Catalyst?
Should I just ignore the system() return status (but then I would miss
real execution errors)?
More information about the Catalyst