Changes between Version 14 and Version 15 of jazz/08-10-21


Ignore:
Timestamp:
Oct 21, 2008, 3:13:55 PM (16 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/08-10-21

    v14 v15  
    99$ wget http://people.debian.org.tw/~chihchun/debian/libnet-sms-pchome-perl/libnet-sms-pchome-perl_0.13-1_all.deb
    1010$ 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")'
    1133}}}
    1234
     
    3153
    3254 * http://www.drbd.org/
    33  * [http://www.linuxconf.eu/2007/programme/abstract-LEllenberg-1.shtml DRBD 8: shared disk semantics on a shared nothing clusterBofB]
     55 * [http://www.linuxconf.eu/2007/programme/abstract-LEllenberg-1.shtml DRBD 8: shared disk semantics on a shared nothing cluster]
    3456 * [http://www.linux-mag.com/id/1502 Data Redundancy by DRBD]
    3557