|
NAMEsendxmpp - send xmpp messages from the commandline. SYNOPSISsendxmpp [options] <recipient1> [<recipient2> ...] sendxmpp --raw [options] DESCRIPTIONsendxmpp is a program to send XMPP (Jabber) messages from the commandline, not unlike mail(1). Messages can be sent both to individual recipients and chatrooms. OPTIONS
CONFIGURATION FILEYou may define a '~/.sendxmpprc' file with the necessary data for your xmpp-account. Since version 1.24 the following format is supported: username: I<your_username>
jserver: I<jabber_server>
port: I<jabber_port>
password: I<your_jabber_password>
component: I<optional_component_name>
Example for Google Talk servers: username: I<lubomir.host>
jserver: I<talk.google.com>
password: I<my-secure-password>
component: I<gmail.com>
With version 1.23 and older only one-line format is supported: user@server password
componentname
e.g.: # my account
alice@jabber.org secret
('#' and newlines are allowed like in shellscripts). You can add a host (or IP address) if it is different from the server part of your JID: # account with specific connection host
alice@myjabberserver.com;foo.com secret
You can also add a port if it is not the standard XMPP port: # account with weird port number
alice@myjabberserver.com:1234 secret
Of course, you may also mix the two: # account with a specific host and port
alice@myjabberserver.com;foo.com:1234 secret
NOTE: for your security, sendxmpp demands that the configuration file is owned by you and readable only to you (permissions 600). EXAMPLE $ echo "hello bob!" | sendxmpp -s hello someone@jabber.org
or to send to a chatroom:
$ echo "Dinner Time" | sendxmpp -r TheCook --chatroom test2@conference.jabber.org
or to send your system logs somewhere, as new lines appear:
$ tail -f /var/log/syslog | sendxmpp -i sysadmin@myjabberserver.com
NOTE: be careful not the overload public jabber services
SEE ALSODocumentation for the Net::XMPP module The jabber homepage: <http://www.jabber.org/> The sendxmpp homepage: <http://sendxmpp.hostname.sk> AUTHORsendxmpp has been written by Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>, and uses the Net::XMPP modules written by Ryan Eatmon. Current maintainer is Lubomir Host <lubomir.host@gmail.com>, <http://blog.hostname.sk>
|