On Fri, Jun 10, 2011 at 11:57 AM, Norbert Thiebaud <[email protected]>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
_______________________________________________
LibreOffice mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to