I've written a very simple PERL
script to send a message from a Unix workstation. For example, you
sms-itineris john "Hello John", and John's cell phone gets the message. Another possibility:
And the result of the compilation is sent to John. Silly isn't it ? A last one:
make -k | sms-itineris toto
And I'm notified of my incoming mail, even if I'd prefer not to hear about it... But
I'm quite sure you'll find many more interesting usages.
$ cat ~/.forward
"| grep -E '^(From:|Subject:)' | sms-itineris tronche"
chmod 755 sms-itineris(Unix, assuming you saved it under the name sms-itineris), et voila.
sms-itineris target message, or
sms-itineris target, and the message is read from the standard input. If the target is purely numerical, it's taken as the number itself, else a lookup is performed in the $HOME/.pager-calepin file, which must be a sequence of lines of the form:
name numberThe name and the number must be separated by tabs (\t). Example:
john 12345678 mum 87654321 marlene 00000000NB: actually, you can append as many fields as you want. I've started using the third column as the name of the network (this will allow to use the same script for several networks some day). In that case, we get for instance:
john 12345678 itineris mum 87654321 tam-tam marlene 00000000 itineris
Another interesting capability of the Itineris gateway is to be
notified of message delivery via email. To use this possibility, you
just put -notify on the command line. For example :
sms-itineris toto -notify email@example.com 'Hello toto'.
Their server's script perform some checkings on the email address (one @ and only one, and at least one . behind the @), so I implemented the same, although I can't see any interest (the address may be wrong in many other ways).
The script is written in PERL. Unlinke the Tam-Tam script, it is autonomous and doesn't use any external procees. It should work if the socket and connect calls are implemented with the same semantics as in Unix, but I haven't checked (yet). The use of the $HOME variable is hazardous at best.
If you try and it happens to work, be nice and send me a little message. And also if it doesn't work. Thank you in advance.