玄学酱 2017-12-21 1092浏览量
http://www.gnokii.org
neo@monitor:~$ apt-cache search gnokii opensync-plugin-gnokii - Opensync gnokii plugin gnokii - Datasuite for mobile phone management gnokii-cli - Datasuite for mobile phone management (console interface) gnokii-common - Datasuite for mobile phone management (base files) gnokii-smsd - SMS Daemon for mobile phones gnokii-smsd-mysql - SMSD plugin for MySQL storage backend gnokii-smsd-pgsql - SMSD plugin for PostgreSQL storage backend libgnokii-dev - Gnokii mobile phone interface library (development files) libgnokii5 - Gnokii mobile phone interface library xgnokii - Datasuite for mobile phone management (X interface) neo@monitor:~$ sudo apt-get install gnokii-cli
# yum search gnokii gnokii-devel.x86_64 : Gnokii development files gnokii-smsd.x86_64 : Gnokii SMS daemon gnokii-smsd-mysql.x86_64 : MySQL support for Gnokii SMS daemon gnokii-smsd-pgsql.x86_64 : PostgreSQL support for Gnokii SMS daemon gnokii-smsd-sqlite.x86_64 : SQLite support for Gnokii SMS daemon gnokii.x86_64 : Linux/Unix tool suite for various mobile phones xgnokii.x86_64 : Graphical Linux/Unix tool suite for various mobile phones
安装
# yum install -y gnokii
vim /etc/gnokiirc or vim ~/.gnokiirc [global] port = /dev/ttyS0 model = AT initlength = default connection = serial serial_baudrate = 19200 smsc_timeout = 10
$ echo "This is a test message" | gnokii --sendsms +13113668890 $ gnokii --sendsms number <<EOF hi neo, This is a test message EOF
# gnokii --smsreader GNOKII Version 0.6.31 Entered sms reader mode... SMS received from number: 8613113668890 Got message 11: hi
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
分享数据库前沿,解构实战干货,推动数据库技术变革