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

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.

Replies are listed 'Best First'.
Re^3: Problem when calling script from script in Perl/CGI in Tomcat5.5 Windows XP
by NetWallah (Canon) on Jan 24, 2008 at 19:36 UTC
    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