Discussion:
[Fab-user] not fabbing to *nix
l***@go2france.com
2015-06-02 21:36:25 UTC
Permalink
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
Brandon Whaley
2015-06-03 04:37:36 UTC
Permalink
Hi Len, the output seems to indicate that the command was read but not
acted on. Do you need to authenticate in some non-ssh way in order to
run that command? If not, I might experiment with putting a newline or an
EOF character in env.shell to see if that gets you to the OCM# prompt.
Post by l***@go2france.com
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,
env.shell=""
run("show subscriber all")
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: WARNING: Authorized Access Only
[10.75.xx.xx] out: OCM#
show subscriber all
it works, but doesn't work in fab when run in fab
Is fab the wrong tool?
thanks
Len
_______________________________________________
Fab-user mailing list
https://lists.nongnu.org/mailman/listinfo/fab-user
Loading...