fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] Limiting stdout


From: Juan Fuentes
Subject: Re: [Fab-user] Limiting stdout
Date: Thu, 6 Jun 2013 20:52:07 -0400

Try using apt-get -q supreses the progress indicators. or -qq which only reports errors.


On Thu, Jun 6, 2013 at 8:27 PM, Larry Cai <address@hidden> wrote:
Probably it is better to control your dpkg command to minimize the output.

Similar things for wget like, in fabric, we are used to use "wget -nv" to disable the progress printout 

my thoughts..


On Fri, Jun 7, 2013 at 7:38 AM, Chris Koch <address@hidden> wrote:
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 do 
with 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




--
True software development embraces consistent inconsistency.
blog: http://larrycaiyu.com/blog (en), http://larrycaiyu.com (chinese)

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




--
Juan Fuentes

reply via email to

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