/usr/share/doc/gammu-doc/examples/smsd-inject.py is in gammu-doc 1.33.0-3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #!/usr/bin/env python
# sample script to show how to send SMS through SMSD
import gammu.smsd
smsd = gammu.smsd.SMSD('/etc/gammu-smsdrc')
import sys
if len(sys.argv) != 2:
print 'Usage: smsd-inject.py RECIPIENT_NUMBER'
sys.exit(1)
message = {'Text': 'python-gammu testing message', 'SMSC': {'Location': 1}, 'Number': sys.argv[1]}
smsd.InjectSMS([message])
|