fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] Suppressing stdout printing in run


From: Lars van der bijl
Subject: Re: [Fab-user] Suppressing stdout printing in run
Date: Mon, 16 Jan 2012 09:44:14 +0000

try using

http://readthedocs.org/docs/fabric/en/1.2.0/api/core/context_managers.html#fabric.context_managers.hide



On 16 January 2012 04:13, Paul Hoffman <address@hidden> wrote:
> Greetings. I want to handle the text that a command that is run gives;
> I don't want the user to see it. For example:
>
> TheUname = run("uname -a")
>
> This prints out:
> address@hidden run: uname -a
> address@hidden out: Linux green 2.6.32-37-generic #81-Ubuntu SMP
> Fri Dec 2 20:32:42 UTC 2011 x86_64 GNU/Linux
>
> Instead, I want it to print out nothing, but I will poke at TheUname
> and get what I need.
>
> Clues on how to do this?
>
> --Paul Hoffman
>
> _______________________________________________
> 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]