Skip to main content

A unix command line program that works like cat but sends its output through XMPP.

Help

usage: xmppcat [-h] [-V] [-c CONFIG] [-H HOST] [-P PORT] [-u USER] [-p PWD]
               [-q] [-d] [-v]
               recipient [file]

CLI application that works like cat but sends its output through xmpp

positional arguments:
recipient             The XMPP jid to send the message to
file                  The file to read. If not specified it will be read
                      from STDIN

optional arguments:
-h, --help            show this help message and exit
-V, --version         show program's version number and exit
-c CONFIG, --config CONFIG
                      Use a different configuration file
-H HOST, --host HOST  XMPP host (xmppcat will try to auto detect it with DNS
                      or JID parsing)
-P PORT, --port PORT  XMPP port
-u USER, --user USER  XMPP username (JID)
-p PWD, --pass PWD    XMPP password

output arguments:
-q, --quiet           Suppress any non-error output
-d, --debug           Enable debugging output
-v, --verbose         Show additional connection informations

Configuration file

The program requires several arguments to be specified in order to be able to connect and authenticate to a XMPP server. To simplify this process you can save this options in a configuration file, either globally in /etc/xmppcat.conf or locally in $HOME/.xmppcat.conf.

This is an example of a configuration file for xmppcat:

[DEFAULT]
user = myuser@jabber.org/xmppcat
pass = mypassword
host = jabber.org # can be autodetected by dnspython
port = 5222 # also autodetectable

Example usage

echo "Hello world!" | xmppcat recipient@jabber.org
xmppcat recipient@jabber.org file.txt

LICENSE

Copyright (c) 2012 Massimiliano Torromeo

xmppcat is free software released under the terms of the BSD license.

See the LICENSE file provided with the source distribution for full details.

Contacts

Metadata

Release files for xmppcat 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xmppcat 0.1.1
File Size Uploaded
xmppcat-0.1.1.tar.gz 4.8 kB Details

Release files / xmppcat-0.1.1.tar.gz

Download URL xmppcat-0.1.1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fda64db8b86e831c8c07fef92473a784868d54dab704b5f9252df6edfa88a8a0
BLAKE2b-256 checksum
How to use checksums
fb435a5d6db6843a52f074e24e181807789cffbabc715c1ed652fc4fec327d4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page