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

Can you explain in more details what the problem is?

Any log messages? As i see you are calling perl interpreter directly? Did you try to write full path to perl?

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

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:57 UTC
    With ` ` I do not have any failures in log.
    I run:
    my @arr = `perl -w $solver_file "$inp_file" "$outfile"`;
    $outfile is just an indication to print to STDOUT
    I have Cygwin and ActivePerl on my machine which starts all pathes with /cygdrive/c/.
    when I type "which perl" in DOS cmd I get
    /cygdrive/c/ActivePerl/bin/perl
    So I tried
    my @arr = `/cygdrive/c/ActivePerl/bin/perl -w $solver_file "$inp_file" + "$outfile"`;
    instead but same result, @arr is empty.
      You may need to make the path-to-perl more windows-like.

      Try

      my @arr = `C:\\ActivePerl\\bin\\perl -w $solver_file "$inp_file" "$out +file"`;
      I suspect the Windows cmd shell may not understand "/cygdrive", or may default to a different Windows drive letter.

           "As you get older three things happen. The first is your memory goes, and I can't remember the other two... " - Sir Norman Wisdom