summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-09-20 23:04:04 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-09-20 23:04:04 +0800
commitb270bc06332782e53d1b2b6108bc92c2b79b27e2 (patch)
treeaf8cde581c18ee58e92000cea9a96c1f9ea05e80
parent7929277c938670c3f5ca3147fd4b15bcd99f59ad (diff)
downloadpttbbs-b270bc06332782e53d1b2b6108bc92c2b79b27e2.tar
pttbbs-b270bc06332782e53d1b2b6108bc92c2b79b27e2.tar.gz
pttbbs-b270bc06332782e53d1b2b6108bc92c2b79b27e2.tar.bz2
pttbbs-b270bc06332782e53d1b2b6108bc92c2b79b27e2.tar.lz
pttbbs-b270bc06332782e53d1b2b6108bc92c2b79b27e2.tar.xz
pttbbs-b270bc06332782e53d1b2b6108bc92c2b79b27e2.tar.zst
pttbbs-b270bc06332782e53d1b2b6108bc92c2b79b27e2.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@526 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/util/lunar-1,15run.pl10
1 files changed, 10 insertions, 0 deletions
diff --git a/pttbbs/util/lunar-1,15run.pl b/pttbbs/util/lunar-1,15run.pl
new file mode 100644
index 00000000..52ea8cea
--- /dev/null
+++ b/pttbbs/util/lunar-1,15run.pl
@@ -0,0 +1,10 @@
+#!/usr/bin/perl
+use LocalVars;
+# 每農曆初一, 十五就會跑一次 $ARGV[0]
+# 資料來源 http://tw.weathers.yahoo.com/
+open FH, "$LYNX -source http://tw.weathers.yahoo.com/ | grep '民國'|";
+$din = <FH>;
+close FH;
+
+($month, $day) = $din =~ /農曆 (.*?)月 (.*?)日/;
+system($ARGV[0]) if( $day eq '一' || $day eq '十五' );