out = subprocess.PIPE
pipe = subprocess.Popen("clamscan",self.filename, shell=True, bufsize=100, stdout=out).stdout
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
/home/denis/<ipython console> in <module>()
NameError: name 'self' is not defined
In [11]: pipe = subprocess.Popen('clamscan','index.html', shell=True, bufsize=100, stdout=out).stdout
Exception AttributeError: "'Popen' object has no attribute '_child_created'" in <bound method Popen.__del__ of <subprocess.Popen object at 0xa342f6c>> ignored
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/home/denis/<ipython console> in <module>()
TypeError: __init__() got multiple values for keyword argument 'bufsize'
Никак не могу завести Popen, так же нужен его вывод.