l***@go2france.com
2015-06-02 21:36:25 UTC
I'm learning fab in a project to program Occam blades, etc. the fab
or python script will be passed 5 params from a PHP web app, params
entered by the web user.
there's no unix type shell in Occam, so excluding the ip, user,
password env stuff :
env.shell=""
def test():
run("show subscriber all")
I run it:
fab test --show=debug
Using fabfile '/usr/local/bin/fabfile.py'
Commands to run: test
Parallel tasks now using pool size of 0
[10.75.xx.xx] run: "show subscriber all"
[10.75.xx.xx] out:
[10.75.xx.xx] out: WARNING: Authorized Access Only
[10.75.xx.xx] out:
[10.75.xx.xx] out: OCM#
the prompt is the last line. if I type:
show subscriber all
it works, but doesn't work in fab when run in fab
Is fab the wrong tool?
thanks
Len
or python script will be passed 5 params from a PHP web app, params
entered by the web user.
there's no unix type shell in Occam, so excluding the ip, user,
password env stuff :
env.shell=""
def test():
run("show subscriber all")
I run it:
fab test --show=debug
Using fabfile '/usr/local/bin/fabfile.py'
Commands to run: test
Parallel tasks now using pool size of 0
[10.75.xx.xx] run: "show subscriber all"
[10.75.xx.xx] out:
[10.75.xx.xx] out: WARNING: Authorized Access Only
[10.75.xx.xx] out:
[10.75.xx.xx] out: OCM#
the prompt is the last line. if I type:
show subscriber all
it works, but doesn't work in fab when run in fab
Is fab the wrong tool?
thanks
Len