SpecialistOff.NET / Вопросы / Статьи / Фрагменты кода / Резюме / Метки / Помощь / Файлы
Назадfrom fabric import Connection
c = Connection('server', user='root')
result = c.run('uname -s')
result.stdout.strip() == 'Linux'
result.exited
result.ok
result.command
result.connection
result.connection.host