|
From: | Larry Cai |
Subject: | Re: [Fab-user] Limiting stdout |
Date: | Fri, 7 Jun 2013 08:27:25 +0800 |
Yes, but as far as I can tell, I can only hide all of stdout with the settings. I don't want to do that. I want Fabric to be smarter about the output. Ideally, it would be nice if it waited until a real newline was sent by the target, instead of apparently injecting one. In a bash script I have that does something similar, I just get this output:
(Reading database ... 98555 files and directories currently installed.)Preparing to replace some-package 1.2.3+45 (using some-package_1.2.3+56.deb) ...
That's really all I want to see.
Chris
From: Jorge Vargas <address@hidden>
Date: Thursday, June 6, 2013 4:27 PM
To: Chris Koch <address@hidden>
Cc: "address@hidden" <address@hidden>
Subject: Re: [Fab-user] Limiting stdout
have you seen this part of the docs http://fabric.readthedocs.org/en/1.2.0/usage/output_controls.html#hiding-and-or-showing-output-levels You can dowith settings(hide(...)):run(...)
On Thu, Jun 6, 2013 at 7:20 PM, Chris Koch <address@hidden> wrote:
I'm issuing a 'run' to a target Ubuntu machine to execute dpkg to install a package. The output I get looks like this:
[ubuntu] out: (Reading database ...[ubuntu] out: (Reading database ... 5%[ubuntu] out: (Reading database ... 10%[ubuntu] out: (Reading database ... 15%[ubuntu] out: (Reading database ... 20%[ubuntu] out: (Reading database ... 25%[ubuntu] out: (Reading database ... 30%[ubuntu] out: (Reading database ... 35%[ubuntu] out: (Reading database ... 40%[ubuntu] out: (Reading database ... 45%[ubuntu] out: (Reading database ... 50%[ubuntu] out: (Reading database ... 55%[ubuntu] out: (Reading database ... 60%[ubuntu] out: (Reading database ... 65%[ubuntu] out: (Reading database ... 70%[ubuntu] out: (Reading database ... 75%[ubuntu] out: (Reading database ... 80%[ubuntu] out: (Reading database ... 85%[ubuntu] out: (Reading database ... 90%[ubuntu] out: (Reading database ... 95%[ubuntu] out: (Reading database ... 100%[ubuntu] out: (Reading database ... 98555 files and directories currently installed.)[ubuntu] out: Preparing to replace some-package 1.2.3+45 (using some-package_1.2.3+56.deb) ...[ubuntu] out:
Is there any way to filter out all those percentage lines, or at least not insert a newline at the end, so that it mimics the output of a direct execution?
Thanks.
Chris
_______________________________________________
Fab-user mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/fab-user
_______________________________________________
Fab-user mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/fab-user
[Prev in Thread] | Current Thread | [Next in Thread] |