我希望在SMS到达时执行我的bash脚本。 RunOnReceive指向我的脚本, 接收到SMS并将其保存在gammu假脱机目录中,但未调用脚本。
脚本保存在/var/spool/gammu/smsd_receive_sms.sh中,具有文件权限 是gammu,group gammu用户拥有的700(-rwx ------)文件。
收到SMS时的
Fri 2019/03/29 17:52:26 gammu-smsd[274]: Received message from: +aaxxxyyyzzz
Fri 2019/03/29 17:52:26 gammu-smsd[274]: Read 1 messages
Fri 2019/03/29 17:52:26 gammu-smsd[274]: Received IN20190329_175215_00_+aaxxxyyyzzz_00.txt
没有收到启动消息的迹象:...。
这是我的/ etc / gammu-smsdrc配置文件:
[gammu]
port = /dev/ttyUSB2
connection = at
logformat = textall
[smsd]
service = files
logfile = /var/log/gammu-smsd.log
debuglevel = 1
RunOnReceive /var/spool/gammu/smsd_receive_sms.sh
inboxpath = /var/spool/gammu/inbox/
outboxpath = /var/spool/gammu/outbox/
sentsmspath = /var/spool/gammu/sent/
errorsmspath = /var/spool/gammu/error/
系统-当前的Raspbian(Debian 9.8),Gammu-smsd版本1.38.1。