From 4fa856c77316eadd36c65a197f68422d4a8dae68 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Mon, 26 May 2008 14:27:35 +0200 Subject: Update doc --- doc/en/plugin_fifo.en.xml | 96 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 doc/en/plugin_fifo.en.xml (limited to 'doc/en/plugin_fifo.en.xml') diff --git a/doc/en/plugin_fifo.en.xml b/doc/en/plugin_fifo.en.xml new file mode 100644 index 000000000..c1c2e081e --- /dev/null +++ b/doc/en/plugin_fifo.en.xml @@ -0,0 +1,96 @@ + + + + +
+ FIFO plugin + + + You can remote control WeeChat, by sending commands or text to a + FIFO pipe (if option "plugins.var.fifo.fifo" is enabled, it is by default). + + + + The FIFO pipe is located in "~/.weechat/" and is + called "weechat_fifo_xxxxx" (where xxxxx is the process ID (PID) of + running WeeChat). + + + + Syntax for the FIFO pipe commands/text is one of following: + + category,name *text or command here + name *text or command here + *text or command here + + + + + Some examples: + + + + nick change on freenode to "mynick|out" : + $ echo 'freenode,freenode */nick mynick|out' >~/.weechat/weechat_fifo_12345 + + + + + display text on #weechat channel: + $ echo 'freenode,#weechat *hello everybody!' >~/.weechat/weechat_fifo_12345 + + + + + display text on current channel (buffer displayed by WeeChat): + $ echo '*hello!' >~/.weechat/weechat_fifo_12345 + Warning: this is dangerous and you should + not do that except if you know what you do! + + + + + send two commands to unload/reload Perl scripts (you have to + separate them with "\n"): + $ echo -e " weechat,weechat */perl unload\nweechat,weechat */perl autoload" >~/.weechat/weechat_fifo_12345 + + + + + + + You can write a script to send command to all running WeeChat at same + time, for example: + +#!/bin/sh +if [ $# -eq 1 ]; then + for fifo in ~/.weechat/weechat_fifo_* + do + echo -e "$1" >$fifo + done +fi + + If the script is called "auto_weechat_command", you can run it with: +$ ./auto_weechat_command "freenode,#weechat *hello" + + +
-- cgit v1.2.3