nice implementation of gammu
http://matt.bottrell.com.au/archives/205-Nagios-2-way-alerting-via-SMS-Part-2.html
nice implementation of gammu
http://matt.bottrell.com.au/archives/205-Nagios-2-way-alerting-via-SMS-Part-2.html
proven, converts mail to sms format: http://daniel.haxx.se/projects/mail2sms/readme.shtml
the other half (cron-ed php script)
mysql_query(‘SELECT * FROM kerja ORDER by id ASC LIMIT 1′)
$ret=system(‘/usr/bin/uptime’);
$ret=trim($ret);
half of the actual trigger
DELIMITER $$
CREATE TRIGGER kerjakan AFTER INSERT ON inbox FOR EACH ROW BEGIN
insert into kerja(cmd_id) values(NEW.TextDecoded);
END $$
DELIMITER ;
Sending sms using smsd-mysql works perfectly using this one.
INSERT INTO outbox ( DestinationNumber, TextDecoded, CreatorID, Coding ) VALUES ( ’3636′, ‘flash info’, ‘Program’, ‘Default_No_Compression’);
gammu smsd reference
gammu smsdrc default configuration
/usr/share/doc/gammu/examples/config/smsdrc.gz
send sms using gammu
echo lala | gammu –sendsms TEXT [cellnumber]
bayu 12:11 am on December 16, 2009 Permalink
create trigger kerjakan AFTER INSERT ON inbox FOR each row begin insert into kerja(command,sender) values (NEW.TextDecoded,NEW.SenderNumber); END$$