CLI application that works like cat but sends its output through xmpp
Project description
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
Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file xmppcat-0.1.1.tar.gz
.
File metadata
- Download URL: xmppcat-0.1.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fda64db8b86e831c8c07fef92473a784868d54dab704b5f9252df6edfa88a8a0 |
|
MD5 | ca71716527d101e312711bd274884733 |
|
BLAKE2b-256 | fb435a5d6db6843a52f074e24e181807789cffbabc715c1ed652fc4fec327d4a |