I wanted to be able to send SMS from the command line to my phone automatically (e.g. to get notified of certain emails). I use Cablecom, which offer the service of sending SMS through a web interface to subscribers. I found smssend (a seemingly dead package, but still available in some distributions), which has a scripting mini-language to allow writing plugins for any web-based service, but I could not get it to work. Finally, I decided to write it from scratch using Perl’s WWW::Mechanize package, and it turned out to be extremely easy. I borrowed the logic from SwissSMS (which is extremely nice and includes a hispeed.ch plugin, but it’s a GUI-only program).
How to use it:
hispeedsend.pl [--login=login] [-pass=pass] phonenumber message
You can hardcode the login and password in the script to avoid specifying them every time – see the top of the script.