Using popen in windows

Robert Cragie rcc at nospamthanks_jennic.com
Thu Apr 20 17:55:27 CEST 2000


I have had an e-mail suggesting I install win32all-128.exe. I did this, and
everything is now OK, so thanks for this advice.

Robert

Robert Cragie <rcc at nospamthanks_jennic.com> wrote in message
news:newscache$vzabtf$ia6$1 at jenpc07.jennic.co.uk...
| I tried the following in Windows 98 as an experiment:
|
| from win32pipe import popen
| p = popen('dir','r')
| str = p.read()
| print str
|
| It just hangs when trying to do the read, and I have to kill the shell
off.
| I have tried IDLE 0.5 and PythonWin and the 'DOS' command line, both do
the
| same. I am using Python 1.5.2, and the win32pipe.pyd DLL is dated 3rd May
| 1999.
|
| I have done the equivalent on Linux and it works fine:
|
| from os import popen
| p = popen('ls','r')
| str = p.read()
| print str
|
| Anyone got any ideas?
|
| TIA
|
| Robert Cragie
|
|





More information about the Python-list mailing list