By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,235 Members | 1,022 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,235 IT Pros & Developers. It's quick & easy.

[Subprocess/Windows] subprocess module under Windows 98

P: n/a

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
Share this Question
Share on Google+
2 Replies


P: n/a
This worked for me on XP... not sure for 98...

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

Nov 2 '05 #2

P: n/a


--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.