NOTE: 2006-10-25: sendxmpp has a new maintainer, Lubomir Host, and a new homepage: sendxmpp.platon.sk

Good luck to Lubomir!


sendxmpp

sendxmpp is a perl-script to send xmpp (jabber), similar to what mail(1) does for mail.

sendxmpp was written by me, 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 have them installed for sendxmpp to work.

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 or IM me at djcb@jabber.org. Thanks!

news

example

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  
fi
And 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* 20th century :-)

more information

Try sendxmpp -h.

download and installation

You can download sendxmpp here: sendxmpp-0.0.7.tar.gz. Installation is simple (for step 4 you may need root-privs):
  1. unpack the tarball, and enter the new directory
  2. $ perl Makefile.PL
  3. $ make
  4. $ make install
NOTE1: this will install under /usr/local/. If you want to install somewhere else you could do (step 2): perl Makefile.PL PREFIX=/usr.
NOTE2: for older versions, just change the version number in the URL.

contact

You can read my Dutch blog, or my Advogato-blog. You can also send me mail, or IM me (djcb@jabber.org)
Emacs, the UberEditor (c) 2001-2004 Dirk-Jan C. Binnema Last modified: Tue Sep 26 21:46:44 EEST 2006