SMS send from script
- This topic has 2 replies, 2 voices, and was last updated 7 years, 11 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
I’m using sms-utils to send messages. My H/W is BeagleBone Black – MTD-H5. Is it possible to place an entire sms message in a single string?
I.E. sms -d /dev/ttyACM3 <address> <text body>
I don’t see anything that describes non-interactive mode, is that the mode I need to use?
Thanks
Jeff,
You can put the text body in a file and use the -f
option
~# sms send usage: send [ OPTIONS ... ] < number > where OPTIONS := { --alphabet { seven-bit | eight-bit } | -f, --file < input-file > | --smsc-addr < smsc-addr > | --cmgw-first }
Thanks Brandon!
I got my “help” from ~# sms
Usage: sms [ OPTIONS … ] { send | read | list | delete }
where OPTIONS := {
-d, –device <device> |
-b, –baud-rate <rate> |
-i, –interactive |
-n, –non-interactive |
–read-timeout <timeout> (default: 5000 milliseconds) |
–verbose
}
Should have tried ~# sms send