Changes between Version 14 and Version 15 of jazz/08-10-21
- Timestamp:
- Oct 21, 2008, 3:13:55 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
jazz/08-10-21
v14 v15 9 9 $ wget http://people.debian.org.tw/~chihchun/debian/libnet-sms-pchome-perl/libnet-sms-pchome-perl_0.13-1_all.deb 10 10 $ sudo dpkg -i libnet-sms-pchome-perl_0.13-1_all.deb 11 }}} 12 * 範例程式: 13 {{{ 14 #!perl 15 use strict; 16 use Net::SMS::PChome; 17 18 my $sms = new Net::SMS::PChome; 19 $sms->login('username', 'password', 'auth_code'); 20 $sms->smsRecipient('0912345678'); 21 $sms->smsSend("The SMS be send by PChome SMS Service!"); 22 23 if($sms->is_success) { 24 print "Successfully sent message to ".$sms->successcount." number!\n"; 25 } else { 26 print "Something went horribly wrong!\n". 27 "Error: ".$sms->resultmessage." (".$sms->resultcode.")". 28 } 29 }}} 30 * 範例指令: 一行搞定 31 {{{ 32 perl -MNet::SMS::PChome -e 'send_sms("pchome_username", "pchome_password", "auth_code", "recipient", "messages text")' 11 33 }}} 12 34 … … 31 53 32 54 * http://www.drbd.org/ 33 * [http://www.linuxconf.eu/2007/programme/abstract-LEllenberg-1.shtml DRBD 8: shared disk semantics on a shared nothing cluster BofB]55 * [http://www.linuxconf.eu/2007/programme/abstract-LEllenberg-1.shtml DRBD 8: shared disk semantics on a shared nothing cluster] 34 56 * [http://www.linux-mag.com/id/1502 Data Redundancy by DRBD] 35 57