类似于cat但通过xmpp发送输出的cli应用程序

xmppcat的Python项目详细描述


一个unix命令行程序,工作方式类似于cat,但通过xmpp发送其输出。

帮助

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

配置文件

程序需要指定几个参数才能连接到xmpp服务器并进行身份验证。 要简化此过程,可以将此选项保存在配置文件中,可以全局保存在/etc/xmppcat.conf中,也可以本地保存在$home/.xmppcat.conf中。

这是xmppcat的配置文件示例:

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

示例用法

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

许可证

版权所有(c)2012 Massimiliano Torromeo

xmppcat是根据bsd许可条款发布的免费软件。

有关详细信息,请参阅源发行版附带的许可证文件。

联系人

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何避免springbootstarterparent和dependency中的flyway包冲突   java文本文件写入不起作用   java获取名为DAO类的Bean创建异常   java类路径和清单文件   如何使用Java中的模式来获取像C中的“sscanf”这样的组?   java Spring自动连接具有构造函数的类   clientSecurity运行的java geode示例失败   java JavaFX:在FXML中从ResourceBundle访问非string对象   java登录到google firebase   java对象在通过构造函数后不会更改。为什么?   java(Android)对特定页面的操作webView   javascript如何在webview的js中从java调用变量   持久化—一种在Java中存储和检索对象而不使用关系数据库的简单方法?   java Ldap获取通讯组列表中的用户   java检查温度条件   java后退按钮警报框(Android Studio)   数组java列表问题:为什么我运行它时,它会在第三次打印时打印出4?   java相对路径与绝对路径