Monday, May 5, 2014

How to Send a SMS From Unix


1. Go to your cell phone carrier's website and determine what your cell phone's email address is. It should be something similar to 'your phone number@yourcarrier.net.'
2. Type in 'ksh' at your Unix command line to switch to the Korn shell.
3. Type in:echo 'text-message' | mailx -s 'test'
@yourcarrier.(net/com)'Text-message' represents the words in the text message you want to send, 'test' represents the subject of the test message and the email address after the '@' symbol represents your cell phone's email address. Hit 'Enter' to send the SMS to your cell phone.
4. Incorporate the code into a script to automatically send yourself a text message while a program is running.

No comments:

Post a Comment