Python バージョン: '2.6.5 (r265:79063、2012 年 10 月 1 日、22:07:21) \n[GCC 4.4.3]'
私はこれを持っています:
>>> ss = subprocess.call("ls -z", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
エラーメッセージを表示するにはどうすればよいですか?
これは動作しません:
>>> for i in subprocess.PIPE:
... print i
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'int' object is not iterable