Найти - Пользователи
Полная версия: помогите с subprocess
Начало » Python для новичков » помогите с subprocess
1
evilempirer
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, так же нужен его вывод.
o7412369815963
вот пример
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB