summaryrefslogtreecommitdiff
path: root/doc/de/user/plugin_fifo.de.xml
blob: e079f581aac6271dd7cc9d7f6f4c741aaf062c5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?xml version="1.0" encoding="UTF-8"?>

<!--

WeeChat documentation (german version)

Copyright (c) 2003-2009 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>
      plugin.buffer *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 'irc.server.freenode */nick mynick|out' &gt;~/.weechat/weechat_fifo_12345</userinput></screen>
        </para>
      </listitem>
      <listitem>
        <para>
          <!-- TRANSLATION NEEDED -->
          display text on IRC #weechat channel:
          <screen><prompt>$ </prompt><userinput>echo 'irc.freenode.#weechat *hello everybody!' >~/.weechat/weechat_fifo_12345</userinput></screen>
        </para>
      </listitem>
      <listitem>
        <para>
          <!-- TRANSLATION NEEDED -->
          display text on current buffer:
          <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 '*/perl unload\n*/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 'irc.freenode.#weechat *hello'</userinput></screen>
  </para>
  
</section>