perl写成的jabber客户端-sendxmpp
2014-07-28 12:05:41 阿炯

sendxmpp是一个由perl写成的jabber/xmpp消息发送脚本工具,运行于命令行终端下,采用GPLv2协议授权。


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

可以通过向其传参或管道的方式进行调用,这样就可以在脚本调用中发送消息,可即时地获得消息,而不是像邮件那样隔上一会才能收到。它也可以从个人主目录中的配置文件('~/.sendxmpprc')中读取相应的参数设置。

'~/.sendxmpprc' configuration file with JID and password required for operation.

使用示例:

if test "$cpuload" -gt "$CPULOADMAX"; then
 top -b -n 1 | sendxmpp -s "wake up! cpu load $cpuload at `hostname`" someone@freeoa.net
fi

sendxmpp is already in use for monitoring remote servers (servers can warn by sending xmpp-messages), and watching CVS commit messages(developers are all connected to a XMPP-chatroom to which messages are sent.

最新版本:1.2
added options --no-tls-verify and --tls-ca-path

项目主页:http://sendxmpp.hostname.sk/