It takes around 4 hours to go through, but using Linux’s built in “mail” program one can send a text message from the command line if one knows the recipient’s service provider. SMS messages, aka texts are emails, using an email address varying by cell service provider. The message will appear to be from yourUser@whatEverYourHostnameIs. I am unsure if responses work yet, as none of mine have come through, though more than likely one would need a registered domain matching that of the machine for this to work.
the command is as follows:
echo “message” | mail -s “insert subject” fullPhoneNumber@providerEmail.com
known email providers:
email@example.com – Sprint
firstname.lastname@example.org – T-Mobile
email@example.com – AT&T
I will not provide my actual phone number for security reasons, but I will use a random example number in order to provide sample code for learning purposes:
$ echo “Better to have loved and lost than never to have loved at all” | mail -s “testing” firstname.lastname@example.org
(that should all be on one line, if there was any confusion)
Message cannot contain operators used in scripting, such as “!”
Message took an extraordinary amount of time to send; my first one took around 4 hours.
Many spam filters will block these since they are from a suspicious domain (your computer).
I have only tested this in Linux Fedora 17, but this should work for all Linux distros, or Unix-based operating systems still containing the Unix mail server.