.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "SENDXMPP 1p" .TH SENDXMPP 1p "2023-08-19" "perl v5.36.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" sendxmpp \- send xmpp messages from the commandline. .SH "SYNOPSIS" .IX Header "SYNOPSIS" sendxmpp [options] [ ...] .PP sendxmpp \-\-raw [options] .SH "DESCRIPTION" .IX Header "DESCRIPTION" sendxmpp is a program to send \s-1XMPP\s0 (Jabber) messages from the commandline, not unlike \fBmail\fR\|(1). Messages can be sent both to individual recipients and chatrooms. .SH "OPTIONS" .IX Header "OPTIONS" .IP "\fB\-f\fR,\fB\-\-file\fR \fIfile\fR" 4 .IX Item "-f,--file file" Use \fIfile\fR configuration file instead of \fI~/.sendxmpprc\fR .IP "\fB\-u\fR,\fB\-\-username\fR \fIuser\fR" 4 .IX Item "-u,--username user" Use \fIuser\fR instead of the one in the configuration file .IP "\fB\-p\fR,\fB\-\-password\fR \fIpassword\fR" 4 .IX Item "-p,--password password" Use \fIpassword\fR instead of the one in the configuration file .IP "\fB\-\-sso\fR" 4 .IX Item "--sso" Instead of specifying username or password, attempt to use system level \s-1SSO\s0 (e.g. kerberos) if supported. .IP "\fB\-j\fR,\fB\-\-jserver\fR \fIserver\fR" 4 .IX Item "-j,--jserver server" Use jabber \fIserver\fR instead of the one in the configuration file. .IP "\fB\-o\fR,\fB\-\-component\fR \fIcomponentname\fR" 4 .IX Item "-o,--component componentname" Use componentname in connect call. Seems needed for Google talk. .IP "\fB\-r\fR,\fB\-\-resource\fR \fIres\fR" 4 .IX Item "-r,--resource res" Use resource \fIres\fR for the sender [default: 'sendxmpp']; when sending to a chatroom, this determines the 'alias' .IP "\fB\-t\fR,\fB\-\-tls\fR" 4 .IX Item "-t,--tls" Connect securely, using \s-1TLS\s0 .IP "\fB\-e\fR,\fB\-\-ssl\fR" 4 .IX Item "-e,--ssl" Connect securely, using \s-1SSL\s0 .IP "\fB\-n\fR,\fB\-\-no\-tls\-verify\fR" 4 .IX Item "-n,--no-tls-verify" Deactivate the verification of \s-1SSL\s0 certificates. Better way is to use parameter \fB\-\-tls\-ca\-path\fR with the needed path to \s-1CA\s0 certificates. .IP "\fB\-a\fR,\fB\-\-tls\-ca\-path\fR" 4 .IX Item "-a,--tls-ca-path" Path to your custom \s-1CA\s0 certificates, so you can verificate \s-1SSL\s0 certificates during connecting. .IP "\fB\-l\fR,\fB\-\-headline\fR" 4 .IX Item "-l,--headline" Backward compatibility option. You should use \fB\-\-message\-type=headline\fR instead. Send a headline type message (not stored in offline messages) .IP "\fB\-\-messages\-type\fR" 4 .IX Item "--messages-type" Set type of message. Supported types are: \fBmessage chat headline\fR. Default message type is \fBmessage\fR. Headline type message can be set also with \fB\-\-headline\fR option, see \fB\-\-headline\fR .IP "\fB\-c\fR,\fB\-\-chatroom\fR" 4 .IX Item "-c,--chatroom" Send the message to a chatroom .IP "\fB\-s\fR,\fB\-\-subject\fR \fIsubject\fR" 4 .IX Item "-s,--subject subject" Set the subject for the message to \fIsubject\fR [default: '']; when sending to a chatroom, this will set the subject for the chatroom .IP "\fB\-m\fR,\fB\-\-message\fR \fImessage\fR" 4 .IX Item "-m,--message message" Read the message from \fImessage\fR (a file) instead of stdin .IP "\fB\-i\fR,\fB\-\-interactive\fR" 4 .IX Item "-i,--interactive" Work in interactive mode, reading lines from stdin and sending the one-at-time .IP "\fB\-w\fR,\fB\-\-raw\fR" 4 .IX Item "-w,--raw" Send raw \s-1XML\s0 message to jabber server .IP "\fB\-v\fR,\fB\-\-verbose\fR" 4 .IX Item "-v,--verbose" Give verbose output about what is happening .IP "\fB\-h\fR,\fB\-\-help\fR,\fB\-\-usage\fR" 4 .IX Item "-h,--help,--usage" Show a 'Usage' message .IP "\fB\-d\fR,\fB\-\-debug\fR" 4 .IX Item "-d,--debug" Show debugging info while running. \fB\s-1WARNING\s0\fR: This will include passwords etc. so be careful with the output! Specify multiple times to increase debug level. .SH "CONFIGURATION FILE" .IX Header "CONFIGURATION FILE" You may define a '\fI~/.sendxmpprc\fR' file with the necessary data for your xmpp-account. Since version 1.24 the following format is supported: .PP .Vb 5 \& username: I \& jserver: I \& port: I \& password: I \& component: I .Ve .PP Example for Google Talk servers: .PP .Vb 4 \& username: I \& jserver: I \& password: I \& component: I .Ve .PP With version 1.23 and older only one-line format is supported: .Sp .RS 4 \&\fIuser\fR@\fIserver\fR \fIpassword\fR \fIcomponentname\fR .RE .PP e.g.: .PP .Vb 2 \& # my account \& alice@jabber.org secret .Ve .PP ('#' and newlines are allowed like in shellscripts). You can add a \fIhost\fR (or \s-1IP\s0 address) if it is different from the \fIserver\fR part of your \s-1JID:\s0 .PP .Vb 2 \& # account with specific connection host \& alice@myjabberserver.com;foo.com secret .Ve .PP You can also add a \fIport\fR if it is not the standard \s-1XMPP\s0 port: .PP .Vb 2 \& # account with weird port number \& alice@myjabberserver.com:1234 secret .Ve .PP Of course, you may also mix the two: .PP .Vb 2 \& # account with a specific host and port \& alice@myjabberserver.com;foo.com:1234 secret .Ve .PP \&\fB\s-1NOTE\s0\fR: for your security, sendxmpp demands that the configuration file is owned by you and readable only to you (permissions 600). .SH "EXAMPLE" .IX Header "EXAMPLE" .Vb 1 \& $ 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 .Ve .SH "SEE ALSO" .IX Header "SEE ALSO" Documentation for the Net::XMPP module .PP The jabber homepage: .PP The sendxmpp homepage: .SH "AUTHOR" .IX Header "AUTHOR" sendxmpp has been written by Dirk-Jan C. Binnema , and uses the Net::XMPP modules written by Ryan Eatmon. Current maintainer is Lubomir Host ,