diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-09-20 23:04:04 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-09-20 23:04:04 +0800 |
commit | d2f1c7b816638ef87c6ce3450e9f293ad234e9c5 (patch) | |
tree | 7b8b6452181738e5287ca14b85fcabf7e6df1ed7 /util | |
parent | 27720fda1d79c185fa18677d0ed6cf64373357b7 (diff) | |
download | pttbbs-d2f1c7b816638ef87c6ce3450e9f293ad234e9c5.tar pttbbs-d2f1c7b816638ef87c6ce3450e9f293ad234e9c5.tar.gz pttbbs-d2f1c7b816638ef87c6ce3450e9f293ad234e9c5.tar.bz2 pttbbs-d2f1c7b816638ef87c6ce3450e9f293ad234e9c5.tar.lz pttbbs-d2f1c7b816638ef87c6ce3450e9f293ad234e9c5.tar.xz pttbbs-d2f1c7b816638ef87c6ce3450e9f293ad234e9c5.tar.zst pttbbs-d2f1c7b816638ef87c6ce3450e9f293ad234e9c5.zip |
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@526 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r-- | util/lunar-1,15run.pl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/util/lunar-1,15run.pl b/util/lunar-1,15run.pl new file mode 100644 index 00000000..52ea8cea --- /dev/null +++ b/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 '十五' ); |