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