[GRASS-SVN] r51628 - grass/branches/develbranch_6/scripts/r.in.wms
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue May 15 16:41:33 EDT 2012
Author: hamish
Date: 2012-05-15 13:41:32 -0700 (Tue, 15 May 2012)
New Revision: 51628
Modified:
grass/branches/develbranch_6/scripts/r.in.wms/wms.download
Log:
wget's --quiet also masks error messages, -nv is not so helpful for large files, for GUI-output box friendly output use 'wget --progress=dot:mega'
Modified: grass/branches/develbranch_6/scripts/r.in.wms/wms.download
===================================================================
--- grass/branches/develbranch_6/scripts/r.in.wms/wms.download 2012-05-15 19:50:46 UTC (rev 51627)
+++ grass/branches/develbranch_6/scripts/r.in.wms/wms.download 2012-05-15 20:41:32 UTC (rev 51628)
@@ -161,9 +161,10 @@
if [ "$POST_DATA_OK" -eq 1 ] ; then
#download the File from the Server
if [ "$USE_WGET" ] ; then
- wget --quiet ${WGET_OPTIONS} --post-data="${STRING}" "${SERVER}" -O "${OUTPUT_FILE}"
+ wget --progress=dot:mega $WGET_OPTIONS --post-data="$STRING" \
+ "$SERVER" -O "$OUTPUT_FILE"
else
- curl ${CURL_OPTIONS} -o "${OUTPUT_FILE}" -d "${STRING}" "${SERVER}"
+ curl $CURL_OPTIONS -o "$OUTPUT_FILE" -d "$STRING" "$SERVER"
fi
if [ $? -ne 0 ] ; then
g.message -e "Failed while downloading the data"
More information about the grass-commit
mailing list