help with os.popen()

cmedcoff at my-dejanews.com cmedcoff at my-dejanews.com
Thu Apr 22 22:36:03 EDT 1999


Hello,

I'm new to python and need a bit of help with os.popen().  What is wrong with
the following? What am I doing wrong? (I'm running 1.52 on WinNT 4.0)

>>>import os
>>> p = os.popen("dir", "rt", 1024)
Traceback (innermost last):
  File "<pyshell#4>", line 1, in ?
    p = os.popen("dir", "rt", 1024)
OSError: (0, 'Error')
>>>


Regards,
Chuck

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




More information about the Python-list mailing list