Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On Fri, Jun 10, 2011 at 11:57 AM, Norbert Thiebaud <nthiebaud@gmail.com>wrote:

The reason wget does not show the progress bar unless you force it to,
is because the output, here,  is piped to a file.
presenting progress bar and putting the output in a file make for a
big and ugly log file.
At the very least you don't want --progress=bar:force but
--progress=dot:mega


Sigh, so we can't have our cake and eat it too... I really appreciate having
feedback for downloads. However, the log file doesn't need it, only the
user. Do you think --progress=dot:mega is acceptable for log file niceness?
There would still be the chatter with the server coming through due to
having to remove the "-nv" (non-verbose) switch.

Luke.
diff --git a/download b/download
index 0af6751..2c1846b 100755
--- a/download
+++ b/download
@@ -129,7 +129,7 @@ downloaditem()
         if [ ! -f "../$2" ]; then
             echo $2
             if [ ! -z "$wget" ]; then
-                $wget -nv -N $1/$2 2>&1 | tee -a $logfile
+                $wget --progress=dot:mega -N $1/$2 2>&1 | tee -a $logfile
             else
                 echo fetching $2
                 $curl $file_date_check -O $1/$2 2>&1 | tee -a $logfile

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.