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 <[email protected]> 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 > [email protected] > https://lists.nongnu.org/mailman/listinfo/fab-user >
_______________________________________________ Fab-user mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/fab-user
