Quote:
Originally Posted by Xsane
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?