Version française
You can send messages to a Tam-Tam pocket receiver for free if you do
it using Internet, at least until the end of '96 (you may wonder how
do the guys make money, but after all, these are not your
business). In order to do this, a message with the right format must
be sent to their Web server.
I wrote a very simple PERL
script to send a message from a Unix workstation. For example, you
type tam-tam john "Hello john", and John's receiver gets
the message. Another possibility:
And the result of the compilation is sent to John. Silly isn't it ?
A last one:
make -k | tam-tam john
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
\tronche
"| grep -E '^(From:|Subject:)' | tam-tam tronche"
telnet and whoami)
chmod 755 tam-tam (assuming you saved it under the name
tam-tam), et voilà.
tam-tam target message, or
tam-tam 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/.tamtam-calepin file, which must be a
sequence of lines of the form:
name number
The name and the number must be separated by tabs (\t). Example:
john 12345678 mum 87654321 marlene 00000000
The script tags every message with the login of the sender at the end.
telnet messages, at least
we get an idea of what's going on.
The script is written in PERL.
Since it calls fork many times, I'd be suprised if it runs under anything
except Unix, but I must admit I haven't tried. It'd be much more
portable if I'd used an HTTP communication library, but I'm lazy...