in reply to Problem when calling script from script in Perl/CGI in Tomcat5.5 Windows XP

What does $! say after a failed system?

Chances are that the server provides different environment variables, and that perl can't be found.

  • Comment on Re: Problem when calling script from script in Perl/CGI in Tomcat5.5 Windows XP
  • Download Code

Replies are listed 'Best First'.
Re^2: Problem when calling script from script in Perl/CGI in Tomcat5.5 Windows XP
by vit (Friar) on Jan 24, 2008 at 16:13 UTC
    Thanks for you reply,
    Again everything works running perl in cgi-bin directory, but when I run it through the browser everything is fine except calling perl inside.

    When I use system() it says "cmd in not found in the path..." which is the path to cgi-bin dir where the scripts are..??
    With backtiks call it ia just ignored, so
    @arr = `perl -w xxx "print results to STDOUT"`
    returns an empty @arr.