sendxmpp was written by Dirk-Jan C. Binnema, and is available under the term of the GNU General Public License v2. The hard work is done by Ryan Eatmon's Net::XMPP-modules, and you need to have them installed for sendxmpp to work. Current package maintainer is Lubomir Host <lubomir.host@gmail.com>
Obviously, you also need a jabber account; they are freely available at jabber.org, but you can also run your own server.
sendxmpp is in use on computers around the globe, for example for distributing CVS-commit alerts, sending server warnings and notifying users. If you use sendxmpp in some other creative way, please drop me a mail at <lubomir.host@gmail.com> or IM me at lhost@jabber.org. Thanks!
Can't use an undefined value as a HASH reference at /usr/lib/perl5/site_perl/5.8.4/XML/Stream.pm line 1165.I've notified their author, and he's working on a solution. jabber.org should work though, jabber.xs4all.nl doesn't.
$ perl Makefile.PL $ make $ make install
Suppose you have to manage a remote server somewhere, and you have to keep an eye on its cpu load-average. You could write a script to check this, and run it periodically from cron. This script could contain something like:
if test "$cpuload" -gt "$CPULOADMAX"; then top -b -n 1 | sendxmpp -s "wake up! cpu load $cpuload at `hostname`" someone@jabber.org fiAnd on my client machine, my jabber-client wil pop-up a message, depending on your client. There are many different client, for any platform/OS.
This is just a small example; many more interesting things become really easy now. Use it from your .procmailrc. Or your logwatcher scripts. Or... (Mail is *so* 20
Try sendxmpp -h.
cd /tmp git clone https://github.com/lhost/sendxmpp.git cd sendxmpp/ perl Makefile.PL; # perl Makefile.PL PREFIX=/usr make make install
You can download sendxmpp here: sendxmpp-1.23.tar.gz. Installation is simple (for step 4 you may need root-privs):
$ perl Makefile.PL $ make $ make install
Previous package maintainer was Dirk-Jan C. Binnema <djcb AT djcbsoftware.nl>.
Since 2006-09-25 package maintainer is Lubomir Host <lubomir.host@gmail.com>.