summaryrefslogtreecommitdiffstats
path: root/util/weather.perl
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-02-07 23:09:14 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-02-07 23:09:14 +0800
commitd1a5cfa585e152a385d37b7c3859e0948d446ab6 (patch)
tree08f256bca845077547a34aae3e07f442327ebcac /util/weather.perl
parent706492c2fe65f1eef279c83d68f61842f5140d71 (diff)
downloadpttbbs-d1a5cfa585e152a385d37b7c3859e0948d446ab6.tar
pttbbs-d1a5cfa585e152a385d37b7c3859e0948d446ab6.tar.gz
pttbbs-d1a5cfa585e152a385d37b7c3859e0948d446ab6.tar.bz2
pttbbs-d1a5cfa585e152a385d37b7c3859e0948d446ab6.tar.lz
pttbbs-d1a5cfa585e152a385d37b7c3859e0948d446ab6.tar.xz
pttbbs-d1a5cfa585e152a385d37b7c3859e0948d446ab6.tar.zst
pttbbs-d1a5cfa585e152a385d37b7c3859e0948d446ab6.zip
���������g����lynx���|
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@650 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/weather.perl')
-rw-r--r--util/weather.perl8
1 files changed, 6 insertions, 2 deletions
diff --git a/util/weather.perl b/util/weather.perl
index 88d380c1..911ff804 100644
--- a/util/weather.perl
+++ b/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");