in reply to Re: Executing an application in Perl/CGI
in thread Executing an application in Perl/CGI

This works for the error, it doesn't launch. However why does this not work on a server end put works alright locally executed. Is this an issue with the path? Thanks for the suggestions.
  • Comment on Re^2: Executing an application in Perl/CGI

Replies are listed 'Best First'.
Re^3: Executing an application in Perl/CGI
by blazar (Canon) on May 22, 2007 at 19:39 UTC
    This works for the error, it doesn't launch. However why does this not work on a server end put works alright locally executed. Is this an issue with the path?

    It may be. However, to quote from perldoc -f system:

    You can check all the failure possibilities by inspecting $? like this: if ($? == -1) { print "failed to execute: $!\n"; } elsif ($? & 127) { printf "child died with signal %d, %s coredump\n", ($? & 127), ($? & 128) ? 'with' : 'without'; } else { printf "child exited with value %d\n", $? >> 8; }
      Exited with value 225