Prakash Babu has asked for the wisdom of the Perl Monks concerning the following question:
I have perl script that is executed from a Application server using java on Windows 2003.
my $zipExec='C:/zip.exe'; my @cmd = ($zipExec, "-rq", $destinationPath, "."); print "Executing command @cmd\n"; $syscode = system(@cmd); my $error = $!; print "Return code = $syscode \n"; print "Error = $error\n";
It fails with the following error message.
Return code = 65280
Error = No such file or directory
I have ensured that C:/zip.exe files exists and is executable. I tried executing other system binaries like cmd.exe but ran into the same issue.
My question is what could be causing this issue like
i. some environment setting is wrong and interfering with the system api and hence it is not able to load the binary.
ii. The $PATH variable in this environment is greater than 1024 characters. Is the length of this variable a concern or some paths set in this variable is causing this issue
|
|---|