My Perl script for this test is very simple, just for test:
my $mycmd = "test.py";#test.pl
my @res = qx/$mycmd/;
My test.py script is very simple too:
os.system("ping 127.0.0.1 > NUL")
execute perl test.pl produce error on Win2003:
The handle could not be opened during redirection of handle 1.
No error message on win2008.
From some search on net I guess it's may because when calling the python, the standard output is not created. Any way to modify the Perl script to eliminate the error? Assuming the python file can not be modified.