fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] not fabbing to *nix


From: Brandon Whaley
Subject: Re: [Fab-user] not fabbing to *nix
Date: Wed, 03 Jun 2015 04:37:36 +0000

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.

On Tue, Jun 2, 2015 at 7:53 PM <address@hidden> wrote:


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



_______________________________________________
Fab-user mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/fab-user

reply via email to

[Prev in Thread] Current Thread [Next in Thread]