Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > [Subprocess/Windows] subprocess module under Windows 98

Reply
Thread Tools

[Subprocess/Windows] subprocess module under Windows 98

 
 
Andreas Jung
Guest
Posts: n/a
 
      11-02-2005

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

 
Reply With Quote
 
 
 
 
Ernesto
Guest
Posts: n/a
 
      11-02-2005
This worked for me on XP... not sure for 98...

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

 
Reply With Quote
 
 
 
 
Andreas Jung
Guest
Posts: n/a
 
      11-02-2005


--On 2. November 2005 08:48:24 -0800 Ernesto <(E-Mail Removed)> 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-----

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
subprocess.Popen under windows 7 Frank van den Boom Python 5 12-09-2011 09:47 AM
Re: subprocess module under python 2.7 Chris Rebert Python 0 07-27-2010 11:36 PM
subprocess module under python 2.7 Timothy W. Grove Python 0 07-27-2010 11:12 PM
how to import subprocess into my 'subprocess.py' file hiral Python 2 05-05-2010 12:56 PM
os.pipe and subprocess under Windows Jeremy Sanders Python 3 11-17-2008 12:43 PM



Advertisments