system call problem under Win32



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
.



Relevant Pages

  • Re: Is perl better? :(((
    ... >> Wasthe original PERL script hitting an Oracle database? ... >> Did you run an explain plan on your Oracle SQL? ... Java and perl on another. ...
    (comp.lang.java.databases)
  • Re: Is perl better? :(((
    ... >> Wasthe original PERL script hitting an Oracle database? ... >> Did you run an explain plan on your Oracle SQL? ... Java and perl on another. ...
    (comp.lang.java.programmer)
  • Re: Is perl better? :(((
    ... Oracle on one box, Java and perl on another. ... See previous answer about SQL. ...
    (comp.lang.java.databases)
  • Re: Is perl better? :(((
    ... Oracle on one box, Java and perl on another. ... See previous answer about SQL. ...
    (comp.lang.java.programmer)
  • Re: Is perl better? :(((
    ... >> Oracle on one box, Java and perl on another. ... See previous answer about SQL. ...
    (comp.lang.java.databases)