fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] Want to hide output of commands in certain cases


From: Ronan Amicel
Subject: Re: [Fab-user] Want to hide output of commands in certain cases
Date: Fri, 16 Sep 2011 15:17:16 +0200

Hi Nicolas,

On Fri, Sep 16, 2011 at 09:44, Nicolas Michel <address@hidden> wrote:

Sometimes, I wanto to execute remote command, get the output in a python variable, parse the data into python then print some things with print(""). In these cases, I don't want fabric to display the command and its output to my terminal when executing from tha "fab" command. Is it possible? I searched for any information in the doc but didn't found anything.

I suggest that you look at the "hide" context manager:
http://docs.fabfile.org/en/1.2.0/api/core/context_managers.html#fabric.context_managers.hide

Check the "Output control" section too:
http://docs.fabfile.org/en/1.2.0/usage/output_controls.html

Hope this helps,

--
Ronan Amicel
http://topixtream.com/


reply via email to

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