output of shell command
Mark Hadfield
m.hadfield at niwa.cri.nz
Tue Feb 27 17:13:31 EST 2001
"Ben Hutchings" <ben.hutchings at roundpoint.com> wrote in message
news:u3dczkcpk.fsf at roundpoint.com...>
> os.popen("dir").readlines() works for me in PythonWin 2.0 #8 on
> Windows 2000 SP1, but I would not be surprised to find that it fails
> to work on Windows 98, though - there are large differences between
> the command interpreters and pipe implementations in different
> versions of Windows. For that matter, the output format of dir may
> differ too.
As I reported in my message yesterday, when I tried
os.popen("dir").readlines() in PythonWin (win32all-137) on Windows 200 it
failed. Today I tried it again & it worked. Why would that be? I'm picking
operator error.
So why did it fail under PythonWin on Steve Holden's machine? Win98 vs
Win2000? Operator error again? What do you think, Steve?
---
Mark Hadfield
m.hadfield at niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield
National Institute for Water and Atmospheric Research
More information about the Python-list
mailing list