cURL(See URL) is an excellent Linux command which helps in interacting with web pages, FTP servers as a Linux inbuilt API.
When you think of sending out text messages you probably think of the iPhone or an Android, and the command line doesn’t cross your mind, but thanks to the ever-useful curl command, you can send out a SMS text message to any phone number right from the Terminal.
Note that while this article comes from an OS X-related site, the technique shown should work in just about any version of Unix or Linux, as long as the curl command is supported.
Full article here:
Send an SMS Text Message from the Command Line (OS X Daily)