LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-07-2015, 09:51 AM   #1
lems
Member
 
Registered: May 2004
Distribution: BSD
Posts: 269

Rep: Reputation: 119Reputation: 119
wget 1.16.2 displays progress bar despite using -q


Hello,

apart from redirection, is there any way to suppress the progress bar with the new wget?

As an example, take ruario's latest-firefox script:

Code:
$ latest-firefox
-                   100[====================>]   1.04K  --.-KB/s   in 0s
Firefox (36.0.1) is already installed; exiting
This seems to be the only entry in wget's changelog that mentions the progress bar:
Code:
Allow progress bar on stderr when -o is used.
The man page clearly states the following regarding -q:
Code:
 -q
 --quiet
     Turn off Wget's output.
lems
 
Old 03-07-2015, 04:24 PM   #2
mancha
Member
 
Registered: Aug 2012
Posts: 484

Rep: Reputation: Disabled
Hi lems.

You've found a bug in wget 1.16.2. I've reviewed the code and developed wget-1.16.2_progress.diff that fixes.

--mancha
 
4 members found this post helpful.
Old 03-08-2015, 01:22 AM   #3
lems
Member
 
Registered: May 2004
Distribution: BSD
Posts: 269

Original Poster
Rep: Reputation: 119Reputation: 119
Hello mancha,

thanks a lot! I wish I had those skills. I applied your patch, recompiled wget and now have the old behaviour back. Thanks again.

lems
 
Old 03-08-2015, 10:08 AM   #4
Xsane
Member
 
Registered: Jan 2014
Posts: 186

Rep: Reputation: 134Reputation: 134
Quote:
Originally Posted by lems View Post
Hello,
Code:
$ latest-firefox
-                   100[====================>]   1.04K  --.-KB/s   in 0s
Firefox (36.0.1) is already installed; exiting
lems
Funny, I've actually wanted that behavior in the past, but could never find
a way to make wget cooperate. Seems like wget has always been all or nothing.
It would be great, IMHO, for slackpkg to have a simplified output like that.
Well, like that, but include the name of the file being downloaded... some
choice besides the verbosity of its default output. A '--terse' option?
 
Old 03-08-2015, 10:32 AM   #5
lems
Member
 
Registered: May 2004
Distribution: BSD
Posts: 269

Original Poster
Rep: Reputation: 119Reputation: 119
Quote:
Originally Posted by Xsane View Post
Funny, I've actually wanted that behavior in the past, but could never find
a way to make wget cooperate. Seems like wget has always been all or nothing.
It would be great, IMHO, for slackpkg to have a simplified output like that.
Well, like that, but include the name of the file being downloaded... some
choice besides the verbosity of its default output. A '--terse' option?
I guess you're aware of it already, but maybe you're looking for -nv?

From the man page:
Code:
-nv
--no-verbose
    Turn off verbose without being completely quiet (use -q for that),
    which means that error messages and basic information still get
    printed.
edit: I've just tried it, it does not print a progress bar. Sorry for the noise! Output looks like this:

Code:
2015-03-08 16:35:52 URL:http://ftp.slackware.at/data/slackware64-14.1/slackware64/tcl/tk-8.6.1-x86_64-1.txz [1740220/1740220] -> "/tmp/slackware64-14.1/slackware64/tcl/tk-8.6.1-x86_64-1.txz" [1]
2015-03-08 16:35:52 URL:http://ftp.slackware.at/data/slackware64-14.1/slackware64/tcl/tk-8.6.1-x86_64-1.txz.asc [198/198] -> "/tmp/slackware64-14.1/slackware64/tcl/tk-8.6.1-x86_64-1.txz.asc" [1]
edit II: wget -q --show-progress does what you want, I guess. Output:
Code:
tk-8.6.1-x86_64-1.t 100[=====================>]   1.66M  1.79MB/s   in 0.9s
I now see that this was the new feature mancha mentioned in the patch.
From the man page:
Code:
--show-progress
    Force wget to display the progress bar in any verbosity.
    By default, wget only displays the progress bar in verbose mode.
    One may however, want wget to display the progress bar on screen in
    conjunction with any other verbosity modes like --no-verbose or
    --quiet.  This is often a desired a property when invoking wget to
    download several small/large files.  In such a case, wget could
    simply be invoked with this parameter to get a much cleaner output
    on the screen.

    This option will also force the progress bar to be printed to
    stderr when used alongside the --logfile option.
I don't use slackpkg, but can't you add ``-q --show-progress'' to WGETFLAGS in slackpkg.conf?

Last edited by lems; 03-08-2015 at 10:47 AM.
 
Old 03-09-2015, 06:35 AM   #6
Xsane
Member
 
Registered: Jan 2014
Posts: 186

Rep: Reputation: 134Reputation: 134
Quote:
Originally Posted by lems View Post
... but can't you add ``-q --show-progress'' to WGETFLAGS in slackpkg.conf?
Looks like when I have the new wget I can
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cp progress bar edwardsiow Linux - General 26 09-04-2011 08:53 AM
[SOLVED] sed processing wget progress bar RichardS Programming 9 11-05-2010 11:01 AM
Bash Download Manager (using wget) and progress bar rastacre Programming 1 08-29-2008 01:33 PM
cp with progress bar? Rotwang Linux - General 5 04-27-2005 07:49 PM
Progress Bar zael Programming 3 10-01-2003 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration