fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] redirecting output of run() and sudo() commands


From: Jens Rantil
Subject: Re: [Fab-user] redirecting output of run() and sudo() commands
Date: Wed, 19 Jun 2013 14:45:45 +0200

Hi Ian,

I think http://docs.fabfile.org/en/latest/api/core/operations.html#fabric.operations.run will answer your question. Have a look at stdout and stderr parameters.

Cheers,
Jens


On Wed, Jun 19, 2013 at 1:20 PM, Ian Stokes-Rees <address@hidden> wrote:

This is a great resource for this issue: http://docs.fabfile.org/en/latest/usage/output_controls.html

and thanks to it, I now have fabric commands that look like:

        with settings(hide('stdout')): 
            sudo(cmd)

If I want to capture stdout to a file, is the way to do this to write my own context manager?

http://docs.fabfile.org/en/latest/api/core/context_managers.html

TIA!

Ian


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




--
Want to know how full my inbox is? Or how to get in touch with me faster? Or tell me your e-mail is not that important? Then check this out: http://courteous.ly/4WtfZY

reply via email to

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