'$ wget http://... > /dev/null' doesn't actually silence wget's spammy
output, so I added the -q flag.
'$ koan --update-files ...' still displays url & destination file, but
can be silenced with a '> /dev/null'.
--
Benjamin Riggs
System Staff
School of Mathematics
University of Minnesota
From a1be63dc63427193f0d4da5bfdab10fed7cce001 Mon Sep 17 00:00:00 2001
From: Benjamin Riggs <riggs(a)umn.edu>
Date: Tue, 31 Mar 2009 15:27:54 -0500
Subject: [PATCH] Silenced wget's output since it doesn't respect stdout.
---
koan/app.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/koan/app.py b/koan/app.py
index 92cf007..6fa46df 100755
--- a/koan/app.py
+++ b/koan/app.py
@@ -634,7 +634,7 @@ class Koan:
url = pattern %
(profile_data["http_server"],"profile",profile_data["name"],dest)
if not os.path.exists(os.path.dirname(save_as)):
os.makedirs(os.path.dirname(save_as))
- cmd = [ "/usr/bin/wget", url, "--output-document",
save_as ]
+ cmd = [ "/usr/bin/wget", "-q", url,
"--output-document", save_as ]
utils.subprocess_call(cmd)
return True
--
1.6.0.6