101 lines
3.3 KiB
XML
101 lines
3.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
|
|
WeeChat documentation (german version)
|
|
|
|
Copyright (c) 2003-2008 by FlashCode <flashcode@flashtux.org>
|
|
|
|
This manual is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This manual is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
-->
|
|
|
|
<section id="secFIFOpipe">
|
|
<title>Remote-Schnittstelle (FIFO pipe)</title>
|
|
|
|
<para>
|
|
<!-- TRANSLATION NEEDED -->
|
|
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).
|
|
</para>
|
|
|
|
<para>
|
|
Diese pipe liegt in "<literal>~/.weechat/</literal>" und hat den Namen
|
|
"weechat_fifo_xxxxx" (das xxxxx ist die Prozess-ID (PID) eines
|
|
laufenden WeeChat).
|
|
</para>
|
|
|
|
<para>
|
|
<!-- TRANSLATION NEEDED -->
|
|
Syntax for the FIFO pipe commands/text is one of following:
|
|
<screen>
|
|
category,name *text or command here
|
|
name *text or command here
|
|
*text or command here
|
|
</screen>
|
|
</para>
|
|
|
|
<para>
|
|
Einige Beispiele:
|
|
<itemizedlist>
|
|
<listitem>
|
|
<para>
|
|
Ändern des Nicks auf freenode in "mynick|out" :
|
|
<screen><prompt>$ </prompt><userinput>echo 'freenode,freenode */nick mynick|out' >~/.weechat/weechat_fifo_12345</userinput></screen>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Senden einer Nachricht an #weechat:
|
|
<screen><prompt>$ </prompt><userinput>echo 'freenode,#weechat *hello everybody!' >~/.weechat/weechat_fifo_12345</userinput></screen>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Senden einer Nachricht an den gegenwärtigen Channel (Puffer, der
|
|
in WeeChat angezeigt wird):
|
|
<screen><prompt>$ </prompt><userinput>echo '*hello!' >~/.weechat/weechat_fifo_12345</userinput></screen>
|
|
<emphasis>Warnung:</emphasis> Das ist gefährlich und sie sollten
|
|
das nicht tun, ausgenommen sie wissen was sie tun!
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Sende zwei Kommandos um (alle) Perl-Skripte abzuschalten/neu zu
|
|
laden (getrennt durch ein "\n"):
|
|
<screen><prompt>$ </prompt><userinput>echo -e "weechat,weechat */perl unload\nweechat,weechat */perl autoload" >~/.weechat/weechat_fifo_12345</userinput></screen>
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</para>
|
|
|
|
<para>
|
|
Sie können ein Skript schreiben, um ein Kommando an alle laufenden WeeChat-Instanzen zu senden,
|
|
zum Beispiel:
|
|
<screen>
|
|
#!/bin/sh
|
|
if [ $# -eq 1 ]; then
|
|
for fifo in ~/.weechat/weechat_fifo_*
|
|
do
|
|
echo -e "$1" >$fifo
|
|
done
|
|
fi
|
|
</screen>
|
|
Wenn das Skript "auto_weechat_command" heisst, können sie es
|
|
folgendermassen aufrufen:
|
|
<screen><prompt>$ </prompt><userinput>./auto_weechat_command "freenode,#weechat *hello"</userinput></screen>
|
|
</para>
|
|
|
|
</section>
|