diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-02-07 23:09:14 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-02-07 23:09:14 +0800 |
commit | edaf69a83b6a439662cd67c4fce78176c6f73267 (patch) | |
tree | a75811ab8e7c6669d1fb7c41b8b7139d7f43930d | |
parent | 1c6d57c7636da4a4c3ba8dc135bfa7cd3b8f5e6d (diff) | |
download | pttbbs-edaf69a83b6a439662cd67c4fce78176c6f73267.tar pttbbs-edaf69a83b6a439662cd67c4fce78176c6f73267.tar.gz pttbbs-edaf69a83b6a439662cd67c4fce78176c6f73267.tar.bz2 pttbbs-edaf69a83b6a439662cd67c4fce78176c6f73267.tar.lz pttbbs-edaf69a83b6a439662cd67c4fce78176c6f73267.tar.xz pttbbs-edaf69a83b6a439662cd67c4fce78176c6f73267.tar.zst pttbbs-edaf69a83b6a439662cd67c4fce78176c6f73267.zip |
���������g����lynx���|
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@650 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/util/weather.perl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pttbbs/util/weather.perl b/pttbbs/util/weather.perl index 88d380c1..911ff804 100644 --- a/pttbbs/util/weather.perl +++ b/pttbbs/util/weather.perl @@ -1,11 +1,15 @@ #!/usr/bin/perl -# $Id: weather.perl,v 1.3 2002/07/23 13:30:11 kcwu Exp $ +# $Id: weather.perl,v 1.4 2003/02/07 15:09:14 victor Exp $ # # ¤£¯à¶]ªº¸Ü¡A¬Ý¬Ý bbspost ªº¸ô®|¬O§_¥¿½T¡C # ¦pªGµo¥Xªº post ¨S¦³®ð¶H³ø§i¦Ó¬O»¡ URL §ä¤£¨ì¡A«h½T©w¤@¤U¯à¤£¯à¬Ý¨ì # ¤¤¥¡®ð¶H§½ªº WWW ¤Î URL ¬O§_¥¿½T¡C # ²z½×¤W¾A¥Î©Ò¦³ Eagle BBS ¨t¦C¡C # -- Beagle Apr 13 1997 + +use lib '/home/bbs/bin'; +use LocalVars; + open(BBSPOST, "| bin/webgrep>etc/weather.tmp"); # ¤é´Á open(DATE, "date +'%a %b %d %T %Y' |"); @@ -15,7 +19,7 @@ close DATE; # Header # ¤º®e -open(WEATHER, "/usr/bin/lynx -assume_charset=big5 -assume_local_charset=big5 -dump http://www.cwb.gov.tw/V3.0/weather/text/W03.htm |"); +open(WEATHER, "$LYNX -assume_charset=big5 -assume_local_charset=big5 -dump http://www.cwb.gov.tw/V3.0/weather/text/W03.htm |"); while (<WEATHER>) { print BBSPOST if ($_ ne "\n"); |