Brant Sears wrote:

> Any ideas on what I might do to troubleshoot this?

As other stated out, you are using the wrong module. Try:

>>> import os
>>> p=os.popen('dir')
>>> for l in p:
...   print l
...
--- OUTPUT OF DIR HERE ---
>>> p.close()

The return value of close is the return value of the command run. If you
need to read stdout and stderr of your command or write to its stdin, use
popen2, popen3, popen4 from the os-module.

Regards
Stephan
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to