I came across fabric modules - Its really cool. It works well for me. Now I have an issue ,how to collect output from fabric script?
# cat fabfile.py
from fabric.api import *
from fabric.contrib.console import confirm
env.hosts = ['localhost' , '172.16.10.112','172.16.10.106']
env.user='testuser'
env.password = 'testuser'
@parallel
def uptime():
run('uname -a')
I would like to use logging modules with fabric and use them inside the code itself .- Don't want to use normal redirection like "fab uptime &> log.out "