Answer the question
In order to leave comments, you need to log in
How can send SMS directly from linux terminal?
There was a need to send sms directly from the command line (no matter for free or paid). Do you know any working (!) utilities or can you tell me how and what to set up for this?
Answer the question
In order to leave comments, you need to log in
I connected an old Nokia phone to the server and use the gnokii program Gnokii
echo "Hello world." | gnokii --sendsms +79260000000 -r
There are various services that provide a REST API for sending sms. You can write a simple script or program that will send the SMS you need using wget or curl.
If necessary, I can send an example of one such service to the LAN so as not to publish it here and not to advertise.
I just connected email2sms to mts, it costs nothing, I just send it to email with the mail command.
smsc.ru has excellent libraries for all languages. In addition, it is possible to create an email address, letters to which will be sent as sms to a given number. The SMS text is transmitted in the subject line of the message.
If you have a rooted iPhone, you can install biteSMS on it and send via command line: "/Applications/biteSMS.app/biteSMS -send -carrier 1234567 'message text'" (you can get to the iPhone command line via SSH).
It is also possible through Android (root is not required) by calling intent, but I don’t know the details.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question