diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-09-20 23:22:18 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-09-20 23:22:18 +0800 |
commit | 21c0ad1400beb8afaf0b4b0c033893dcbcd91c79 (patch) | |
tree | b68f0b3f55e6dcf6ca82f64fb2a65b6e7b575a7c /util/lunar-1,15run.pl | |
parent | d2f1c7b816638ef87c6ce3450e9f293ad234e9c5 (diff) | |
download | pttbbs-21c0ad1400beb8afaf0b4b0c033893dcbcd91c79.tar pttbbs-21c0ad1400beb8afaf0b4b0c033893dcbcd91c79.tar.gz pttbbs-21c0ad1400beb8afaf0b4b0c033893dcbcd91c79.tar.bz2 pttbbs-21c0ad1400beb8afaf0b4b0c033893dcbcd91c79.tar.lz pttbbs-21c0ad1400beb8afaf0b4b0c033893dcbcd91c79.tar.xz pttbbs-21c0ad1400beb8afaf0b4b0c033893dcbcd91c79.tar.zst pttbbs-21c0ad1400beb8afaf0b4b0c033893dcbcd91c79.zip |
fix bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@527 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/lunar-1,15run.pl')
-rw-r--r-- | util/lunar-1,15run.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/lunar-1,15run.pl b/util/lunar-1,15run.pl index 52ea8cea..7a307027 100644 --- a/util/lunar-1,15run.pl +++ b/util/lunar-1,15run.pl @@ -1,4 +1,5 @@ #!/usr/bin/perl +use lib '/home/bbs/bin/'; use LocalVars; # 每農曆初一, 十五就會跑一次 $ARGV[0] # 資料來源 http://tw.weathers.yahoo.com/ @@ -7,4 +8,4 @@ $din = <FH>; close FH; ($month, $day) = $din =~ /農曆 (.*?)月 (.*?)日/; -system($ARGV[0]) if( $day eq '一' || $day eq '十五' ); +system("@ARGV") if( $day eq '一' || $day eq '十五' ); |