2006 / sms.a1.net Shell Client

smp

send sms from your shell prompt
to cellphones using sms.a1.net

Update 2007-09-16: A new and improved version written in Python is available as "smpy" for your graphical Linux Desktop. You can find downloads and information at this page.

As a result of recent Perl programming language hacks, here's something merely useful. This is what happens when you want to write to neat people that are not able to get onto the internet for a few more days :)

Current version smp 1.6 features monthly limit detection: When your monthly limit (currently 120 SMS) is reached, smp will abort and inform you about this. You can still send SMS from the web interface then.

Usage

Interactive mode

$ smp
I already know: [ thp, mybuddy, iris ]
To: thp

Go ahead, type your message. End with [ENTER].

hello there, what's up?
Send? (y/n) y
sending to +43664xxxxxxx..
done.

Command line mode

$ smp mybuddy

Go ahead, type your message. End with [ENTER].

heya! command line mode is new in 1.3!
Send? (y/n) y
sending to +43676xxxxxxx..
done.

You can also combine command-line mode with shell pipes, and send SMS with a single line:

$ echo "hello there" | smp mybuddy
Sending to +43664xxxxxxx..
done.

Installing as CGI script

Starting with smp 1.5, you can now run smp as a cgi script on your webserver (tested with Apache). All you need is smp, your usual ~/.smprc configuration file and a suitable .htaccess configuration file. You can download an example here: sample-htaccess-cgi. Copy this file as .htaccess to a folder on your webserver, copy the smp binary in the same folder, edit the .htaccess file to the correct path and create a .htpasswd file using htpasswd -c .htaccess yourusername. You should now be able to send sms messages using your web browser - how gee :)

Download

The current release of smp can always be found here: smp


Sun Sep 16 14:39:19 2007 +0000