SENDXMPP(1)
Hey bestie π welcome to the SENDXMPP(1) manual from the User Contributed Perl Documentation β this is the page for sendxmpp, the lil commandline bestie for sending XMPP (Jabber) messages. π«Ά
π NAME π
sendxmpp β send xmpp messages from the commandline. periodt. π
πΈ SYNOPSIS πΈ
okay so the whole vibe is literally:
sendxmpp [options] <recipient1> [<recipient2> ...]
sendxmpp --raw [options]
π¦ DESCRIPTION π¦
sendxmpp 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. no cap, it's giving commandline mail energy but make it Jabber β¨
β¨ OPTIONS β¨
every flag, no skips, periodt:
-f,--filefile β Use file configuration file instead of~/.sendxmpprc.-u,--usernameuser β Use user instead of the one in the configuration file.-p,--passwordpassword β Use password instead of the one in the configuration file.--ssoβ Instead of specifying username or password, attempt to use system level SSO (e.g. kerberos) if supported.-j,--jserverserver β Use jabber server instead of the one in the configuration file.-o,--componentcomponentname β Use componentname in connect call. Seems needed for Google talk.-r,--resourceres β Use resource res for the sender [default:'sendxmpp']; when sending to a chatroom, this determines the'alias'.-t,--tlsβ Connect securely, using TLS.-e,--sslβ Connect securely, using SSL.-n,--no-tls-verifyβ Deactivate the verification of SSL certificates. Better way is to use parameter--tls-ca-pathwith the needed path to CA certificates.-a,--tls-ca-pathβ Path to your custom CA certificates, so you can verify SSL certificates during connecting.-l,--headlineβ Backward compatibility option. You should use--message-type=headlineinstead. Send a headline type message (not stored in offline messages).--messages-typeβ Set type of message. Supported types are:messagechatheadline. Default message type ismessage. Headline type message can be set also with--headlineoption, see--headline.-c,--chatroomβ Send the message to a chatroom.-s,--subjectsubject β Set the subject for the message to subject [default:'']; when sending to a chatroom, this will set the subject for the chatroom.-m,--messagemessage β Read the message from message (a file) instead of stdin.-i,--interactiveβ Work in interactive mode, reading lines from stdin and sending the one-at-time.-w,--rawβ Send raw XML message to jabber server.-v,--verboseβ Give verbose output about what is happening.-h,--help,--usageβ Show a 'Usage' message.-d,--debugβ Show debugging info while running. WARNING: This will include passwords etc. so be careful with the output! Specify multiple times to increase debug level.
π CONFIGURATION FILE π
You 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,sendxmppdemands that the configuration file is owned by you and readable only to you (permissions600). bestie, lock that file down fr fr π
π₯ EXAMPLE π₯
the examples are literally:
$ 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 to overload public jabber services, bestie π
π SEE ALSO π
- Documentation for the
Net::XMPPmodule - The jabber homepage:
<http://www.jabber.org/> - The sendxmpp homepage:
<http://sendxmpp.hostname.sk>
π AUTHOR π
sendxmpp 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>. iconic credits, honestly π
This page is from perl v5.42.0, dated 2022-10-16, and it's the SENDXMPP(1) manual β bye bestie πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: sendxmpp 1.24-bp160.1.3 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms