U
Uwe Huniar
I have a strange error with the combination of perl, java and Windows...
What we do:
- a java program calls (with runtime.exec) 'perl PATH/script.pl'
- in script.pl there are several system calls to binaries
- system "prog.exe >> out";
java and perl work as expected, the script.pl runs on the shell
(cmd.exe as well as bash with cygwin) without problems.
But the script.pl does not do the system call at all, it passes the
system " ... "; without executing the binary (also a simple echo or
'del file' does not work).
Error on:
Windows 2000, ActivePerl 5.8.8, Java2 1.5.0
Windows XP, ActivePerl 5.8.8, Java2 1.5.0
Windows XP, PXPerl 5.8.7-6, Java2 1.5.0
Works properly on:
Windows XP, cygwin perl 5.8.7, Java2 1.5.0
Anyone any idea how to circumvent that?
Uwe
What we do:
- a java program calls (with runtime.exec) 'perl PATH/script.pl'
- in script.pl there are several system calls to binaries
- system "prog.exe >> out";
java and perl work as expected, the script.pl runs on the shell
(cmd.exe as well as bash with cygwin) without problems.
But the script.pl does not do the system call at all, it passes the
system " ... "; without executing the binary (also a simple echo or
'del file' does not work).
Error on:
Windows 2000, ActivePerl 5.8.8, Java2 1.5.0
Windows XP, ActivePerl 5.8.8, Java2 1.5.0
Windows XP, PXPerl 5.8.7-6, Java2 1.5.0
Works properly on:
Windows XP, cygwin perl 5.8.7, Java2 1.5.0
Anyone any idea how to circumvent that?
Uwe