468,284 Members | 1,609 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,284 developers. It's quick & easy.

[Subprocess/Windows] subprocess module under Windows 98


Hi,

I am using subprocess.Popen() to start Java processes (converters) from
within Zope under Windows 98 (sorry, we have to support the platform). The
call looks like this:
P = Popen('java.exe arguments...', stdout=PIPE, stderr=PIPE,
stdin=open('nul:')).

stdin=open('nul:') is required to make Popen() actually running under
Windows 98 (stdin=None works fine on XP).

However for every Popen() call Windows 98 opens an empty DOS box that
disappear after completion of the converter process. The Popen() has some
'startupinfo' and 'creationflags' attributes but I could not find any
documentation. Is there a way to suppress the DOS boxes somehow using these
attributes or is there another way to get rid of them?

Thanks in advance,
Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)

iD8DBQFDaOoXCJIWIbr9KYwRAjXcAKCHVylhCj17onvXjh3J56 AfCexJIQCgt8dQ
ncpHo7FqYIY9/04SWz6aCs4=
=0zjX
-----END PGP SIGNATURE-----

Nov 2 '05 #1
2 1463
This worked for me on XP... not sure for 98...

http://aspn.activestate.com/ASPN/Coo.../Recipe/409002

Nov 2 '05 #2


--On 2. November 2005 08:48:24 -0800 Ernesto <er*******@gmail.com> wrote:
This worked for me on XP... not sure for 98...

http://aspn.activestate.com/ASPN/Coo.../Recipe/409002


Thanks, this works!

Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)

iD8DBQFDaPpZCJIWIbr9KYwRAu/5AJ9YFbyohH6Vo0ACNvnONdGyC8TLHgCfVn8+
E8zG0OxDiZL8I9BljPRih2E=
=fZIB
-----END PGP SIGNATURE-----

Nov 2 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

17 posts views Thread by Michael McGarry | last post: by
3 posts views Thread by Darren Dale | last post: by
5 posts views Thread by Grant Edwards | last post: by
12 posts views Thread by bhunter | last post: by
1 post views Thread by Steven Bethard | last post: by
reply views Thread by Michel Lespinasse | last post: by
25 posts views Thread by Jeremy Banks | last post: by
reply views Thread by NPC403 | last post: by
2 posts views Thread by MrBee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.