[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fab-user] fab version
From: |
Kaushal Shriyan |
Subject: |
[Fab-user] fab version |
Date: |
Mon, 24 Oct 2011 05:05:40 +0530 |
Hi,
I have this fabric python script.
#!/usr/bin/env python
from fabric.api import *
env.shell = '/bin/bash -l -c'
out_log = open("output.txt", "w")
with open("hosts.txt") as host_file:
host_list = [x.strip() for x in host_file.readlines()]
@hosts(host_list)
def install():
with settings(warn_only=True):
version = run("route -n").stderr
out_log.write("%s: %s" % (env.host, version))
when i run from the command line fab version, i get
address@hidden:~$ fab version
Fatal error: Command(s) not found:
version
Aborting.
address@hidden:~$
Am i missing something ?
Thanks and Regards,
Kaushal
- [Fab-user] fab version,
Kaushal Shriyan <=