diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-07-18 12:14:36 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-07-18 12:14:36 +0800 |
commit | 6848eda5bd660066b9a1a4c1f7c42f37fba622d2 (patch) | |
tree | 24c9e885d2b0ead3b4e765eea14c1f5ddcb5d1e6 | |
parent | 204d2d0ead51a737e060c77d9c21886831af1292 (diff) | |
download | pttbbs-6848eda5bd660066b9a1a4c1f7c42f37fba622d2.tar pttbbs-6848eda5bd660066b9a1a4c1f7c42f37fba622d2.tar.gz pttbbs-6848eda5bd660066b9a1a4c1f7c42f37fba622d2.tar.bz2 pttbbs-6848eda5bd660066b9a1a4c1f7c42f37fba622d2.tar.lz pttbbs-6848eda5bd660066b9a1a4c1f7c42f37fba622d2.tar.xz pttbbs-6848eda5bd660066b9a1a4c1f7c42f37fba622d2.tar.zst pttbbs-6848eda5bd660066b9a1a4c1f7c42f37fba622d2.zip |
Fix weather report
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@4388 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/sample/LocalVars.pm | 1 | ||||
-rw-r--r-- | pttbbs/util/weather.perl | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/pttbbs/sample/LocalVars.pm b/pttbbs/sample/LocalVars.pm index 7b5d7c9f..13a5d0cc 100644 --- a/pttbbs/sample/LocalVars.pm +++ b/pttbbs/sample/LocalVars.pm @@ -25,6 +25,7 @@ $TMP = '/tmp'; # program $TAR = '/usr/bin/tar'; $LYNX = '/usr/local/bin/lynx'; # /usr/ports/www/lynx +$WGET = '/usr/local/bin/wget'; # /usr/ports/www/wget $GREP = '/usr/bin/grep'; # BLOG: diff --git a/pttbbs/util/weather.perl b/pttbbs/util/weather.perl index 36d773d7..27c08d47 100644 --- a/pttbbs/util/weather.perl +++ b/pttbbs/util/weather.perl @@ -20,7 +20,7 @@ sub weather_report # Header # ¤º®e - open(WEATHER, "$LYNX -assume_charset=big5 -assume_local_charset=big5 -dump -nolist $link|"); + open(WEATHER, "$WGET --quiet -O - $link|"); while (<WEATHER>) { print BBSPOST if ($_ ne "\n"); |