|
From: Ype K. <yk...@xs...> - 2002-01-07 19:29:29
|
Dietrich,
>I want to run a user written WNT 4.0 EXE file with a command line argument
>from within a JPython script. How can I do this ?
One way is to use java directly:
import java
prc = java.lang.exec('your.exe ' + someArgument)
prc.getOutputStream().close() # evt. write into it first
exitValue = prc.waitFor()
prc.getInputStream().close() # evt. read this first
prc.getErrorStream().close() # idem.
I have not checked the new os module yet. It might be even more portable.
Good luck,
Ype
--
|