mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 16:53:14 +02:00
fifo: add PID in default FIFO pipe filename (issue #1285)
This is to prevent two WeeChat using the same runtime directory to use the same FIFO pipe.
This commit is contained in:
@@ -2801,7 +2801,7 @@ ist diese Option aktiviert).
|
||||
|
||||
// TRANSLATION MISSING
|
||||
The FIFO pipe is located in WeeChat runtime directory and is called
|
||||
_weechat_fifo_ by default.
|
||||
_weechat_fifo_12345_ by default (where _12345_ is the WeeChat process id).
|
||||
|
||||
Die Syntax der FIFO Pipe Befehle/Text sieht wie folgt aus:
|
||||
|
||||
@@ -2815,26 +2815,26 @@ einige Beispiele:
|
||||
* Ändert den eigenen Nick auf dem IRC Server freenode in "newnick":
|
||||
|
||||
----
|
||||
$ echo 'irc.server.freenode */nick newnick' >/run/user/1000/weechat/weechat_fifo
|
||||
$ echo 'irc.server.freenode */nick newnick' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
* Schickt eine Nachrich in den IRC #weechat Channel:
|
||||
|
||||
----
|
||||
$ echo 'irc.freenode.#weechat *hello!' >/run/user/1000/weechat/weechat_fifo
|
||||
$ echo 'irc.freenode.#weechat *hello!' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
* Schickt eine Nachricht in den aktuellen Buffer:
|
||||
|
||||
----
|
||||
$ echo '*hello!' >/run/user/1000/weechat/weechat_fifo
|
||||
$ echo '*hello!' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
* Sendet zwei Befehle um alle Python-Skripten zu entfernen und dann neu zu laden (die beiden Befehle müssen
|
||||
mit "\n" getrennt werden):
|
||||
|
||||
----
|
||||
$ printf '%b' '*/python unload\n*/python autoload\n' >/run/user/1000/weechat/weechat_fifo
|
||||
$ printf '%b' '*/python unload\n*/python autoload\n' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
[[fifo_commands]]
|
||||
|
||||
@@ -2741,7 +2741,7 @@ You can remote control WeeChat, by sending commands or text to a FIFO pipe (if
|
||||
option "fifo.file.enabled" is enabled, it is by default).
|
||||
|
||||
The FIFO pipe is located in WeeChat runtime directory and is called
|
||||
_weechat_fifo_ by default.
|
||||
_weechat_fifo_12345_ by default (where _12345_ is the WeeChat process id).
|
||||
|
||||
Syntax for the FIFO pipe commands/text is one of following:
|
||||
|
||||
@@ -2755,26 +2755,26 @@ Some examples:
|
||||
* Change nick on IRC server freenode to "newnick":
|
||||
|
||||
----
|
||||
$ echo 'irc.server.freenode */nick newnick' >/run/user/1000/weechat/weechat_fifo
|
||||
$ echo 'irc.server.freenode */nick newnick' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
* Send a message on IRC #weechat channel:
|
||||
|
||||
----
|
||||
$ echo 'irc.freenode.#weechat *hello!' >/run/user/1000/weechat/weechat_fifo
|
||||
$ echo 'irc.freenode.#weechat *hello!' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
* Send a message on current buffer:
|
||||
|
||||
----
|
||||
$ echo '*hello!' >/run/user/1000/weechat/weechat_fifo
|
||||
$ echo '*hello!' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
* Send two commands to unload/reload Python scripts (you have to separate them
|
||||
with "\n"):
|
||||
|
||||
----
|
||||
$ printf '%b' '*/python unload\n*/python autoload\n' >/run/user/1000/weechat/weechat_fifo
|
||||
$ printf '%b' '*/python unload\n*/python autoload\n' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
[[fifo_commands]]
|
||||
|
||||
@@ -2837,8 +2837,8 @@ Vous pouvez contrôler WeeChat à distance, en envoyant des commandes ou du
|
||||
texte dans un tube FIFO (si l'option _fifo.file.enabled_ est activée,
|
||||
elle l'est par défaut).
|
||||
|
||||
Le tube FIFO est dans le répertoire WeeChat "runtime" et s'appelle _weechat_fifo_
|
||||
par défaut.
|
||||
Le tube FIFO est dans le répertoire WeeChat "runtime" et s'appelle
|
||||
_weechat_fifo_12345_ par défaut (où _12345_ est le process id de WeeChat).
|
||||
|
||||
La syntaxe pour envoyer des commandes ou du texte dans le tube FIFO est une
|
||||
des suivantes :
|
||||
@@ -2853,26 +2853,26 @@ Quelques exemples :
|
||||
* Changer le pseudo sur freenode en "autrepseudo" :
|
||||
|
||||
----
|
||||
$ echo 'irc.server.freenode */nick autrepseudo' >/run/user/1000/weechat/weechat_fifo
|
||||
$ echo 'irc.server.freenode */nick autrepseudo' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
* Envoyer un message sur le canal IRC #weechat :
|
||||
|
||||
----
|
||||
$ echo 'irc.freenode.#weechat *bonjour !' >/run/user/1000/weechat/weechat_fifo
|
||||
$ echo 'irc.freenode.#weechat *bonjour !' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
* Envoyer un message sur le tampon courant :
|
||||
|
||||
----
|
||||
$ echo '*bonjour !' >/run/user/1000/weechat/weechat_fifo
|
||||
$ echo '*bonjour !' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
* Envoyer deux commandes pour décharger/recharger les scripts Python (vous devez
|
||||
les séparer par "\n") :
|
||||
|
||||
----
|
||||
$ printf '%b' '*/python unload\n*/python autoload\n' >/run/user/1000/weechat/weechat_fifo
|
||||
$ printf '%b' '*/python unload\n*/python autoload\n' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
[[fifo_commands]]
|
||||
|
||||
@@ -2946,7 +2946,7 @@ pipe FIFO (se l'opzione "fifo.file.enabled" è abilitata, e lo è per default).
|
||||
|
||||
// TRANSLATION MISSING
|
||||
The FIFO pipe is located in WeeChat runtime directory and is called
|
||||
_weechat_fifo_ by default.
|
||||
_weechat_fifo_12345_ by default (where _12345_ is the WeeChat process id).
|
||||
|
||||
La sintassi per i comandi/testo della pipe FIFO è una delle seguenti:
|
||||
|
||||
@@ -2961,28 +2961,28 @@ Alcuni esempi:
|
||||
* Change nick on IRC server freenode to "newnick":
|
||||
|
||||
----
|
||||
$ echo 'irc.server.freenode */nick newnick' >/run/user/1000/weechat/weechat_fifo
|
||||
$ echo 'irc.server.freenode */nick newnick' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
// TRANSLATION MISSING
|
||||
* Send a message on IRC #weechat channel:
|
||||
|
||||
----
|
||||
$ echo 'irc.freenode.#weechat *hello!' >/run/user/1000/weechat/weechat_fifo
|
||||
$ echo 'irc.freenode.#weechat *hello!' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
// TRANSLATION MISSING
|
||||
* Send a message on current buffer:
|
||||
|
||||
----
|
||||
$ echo '*hello!' >/run/user/1000/weechat/weechat_fifo
|
||||
$ echo '*hello!' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
* Inviare due comandi per scaricare/caricare gli script Python (è necessario
|
||||
separarli con "\n"):
|
||||
|
||||
----
|
||||
$ printf '%b' '*/python unload\n*/python autoload\n' >/run/user/1000/weechat/weechat_fifo
|
||||
$ printf '%b' '*/python unload\n*/python autoload\n' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
[[fifo_commands]]
|
||||
|
||||
@@ -2816,7 +2816,7 @@ include::includes/autogen_user_options.ja.adoc[tag=exec_options]
|
||||
|
||||
// TRANSLATION MISSING
|
||||
The FIFO pipe is located in WeeChat runtime directory and is called
|
||||
_weechat_fifo_ by default.
|
||||
_weechat_fifo_12345_ by default (where _12345_ is the WeeChat process id).
|
||||
|
||||
FIFO パイプに書き込むコマンド/テキストの文法は以下の例の一つです:
|
||||
|
||||
@@ -2830,26 +2830,26 @@ FIFO パイプに書き込むコマンド/テキストの文法は以下の例
|
||||
* IRC サーバ freenode で使うニックネームを "newnick" に変更する:
|
||||
|
||||
----
|
||||
$ echo 'irc.server.freenode */nick newnick' >/run/user/1000/weechat/weechat_fifo
|
||||
$ echo 'irc.server.freenode */nick newnick' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
* IRC チャンネル #weechat に対してテキストを送信:
|
||||
|
||||
----
|
||||
$ echo 'irc.freenode.#weechat *hello!' >/run/user/1000/weechat/weechat_fifo
|
||||
$ echo 'irc.freenode.#weechat *hello!' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
* 現在のバッファに対してテキストを送信:
|
||||
|
||||
----
|
||||
$ echo '*hello!' >/run/user/1000/weechat/weechat_fifo
|
||||
$ echo '*hello!' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
* Python スクリプトのアンロードとロードを行う 2 つのコマンドを送信
|
||||
(複数のコマンドは "\n" で分割してください):
|
||||
|
||||
----
|
||||
$ printf '%b' '*/python unload\n*/python autoload\n' >/run/user/1000/weechat/weechat_fifo
|
||||
$ printf '%b' '*/python unload\n*/python autoload\n' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
[[fifo_commands]]
|
||||
|
||||
@@ -2775,7 +2775,7 @@ włączona).
|
||||
|
||||
// TRANSLATION MISSING
|
||||
The FIFO pipe is located in WeeChat runtime directory and is called
|
||||
_weechat_fifo_ by default.
|
||||
_weechat_fifo_12345_ by default (where _12345_ is the WeeChat process id).
|
||||
|
||||
Składnia dla komend/tekstu przekazywanego do kolejki FIFO wygląda następująco:
|
||||
|
||||
@@ -2789,26 +2789,26 @@ Kilka przykładów:
|
||||
* Zmiana nicka na serwerze IRC freenode na "newnick":
|
||||
|
||||
----
|
||||
$ echo 'irc.server.freenode */nick newnick' >/run/user/1000/weechat/weechat_fifo
|
||||
$ echo 'irc.server.freenode */nick newnick' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
* Wysłanie wiadomości na kanał IRC #weechat:
|
||||
|
||||
----
|
||||
$ echo 'irc.freenode.#weechat *hello!' >/run/user/1000/weechat/weechat_fifo
|
||||
$ echo 'irc.freenode.#weechat *hello!' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
* Wysłanie wiadomości do obecnego bufora:
|
||||
|
||||
----
|
||||
$ echo '*hello!' >/run/user/1000/weechat/weechat_fifo
|
||||
$ echo '*hello!' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
* Wysłanie dwóch komend do wyładowania/przeładowania skryptów Python (należy
|
||||
oddzielić je za pomocą "\n"):
|
||||
|
||||
----
|
||||
$ printf '%b' '*/python unload\n*/python autoload\n' >/run/user/1000/weechat/weechat_fifo
|
||||
$ printf '%b' '*/python unload\n*/python autoload\n' >/run/user/1000/weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
[[fifo_commands]]
|
||||
|
||||
@@ -102,8 +102,9 @@ fifo_command_init ()
|
||||
"\n"
|
||||
"FIFO pipe is used as remote control of WeeChat: you can send "
|
||||
"commands or text to the FIFO pipe from your shell.\n"
|
||||
"By default the FIFO pipe is called weechat_fifo and saved in the "
|
||||
"WeeChat runtime directory (see /debug dirs).\n"
|
||||
"By default the FIFO pipe is called weechat_fifo_xxx (where xxx is "
|
||||
"the WeeChat process id) and saved in the WeeChat runtime directory "
|
||||
"(see /debug dirs).\n"
|
||||
"\n"
|
||||
"The expected format is one of:\n"
|
||||
" plugin.buffer *text or command here\n"
|
||||
@@ -111,7 +112,7 @@ fifo_command_init ()
|
||||
"\n"
|
||||
"For example to change your freenode nick:\n"
|
||||
" echo 'irc.server.freenode */nick newnick' "
|
||||
">/run/user/1000/weechat/weechat_fifo\n"
|
||||
">/run/user/1000/weechat/weechat_fifo_12345\n"
|
||||
"\n"
|
||||
"Please read the user's guide for more info and examples.\n"
|
||||
"\n"
|
||||
|
||||
@@ -122,7 +122,7 @@ fifo_config_init ()
|
||||
"WeeChat PID can be used in path with ${info:pid} "
|
||||
"(path is evaluated, see function string_eval_path_home in "
|
||||
"plugin API reference)"),
|
||||
NULL, 0, 0, "${weechat_runtime_dir}/weechat_fifo", NULL, 0,
|
||||
NULL, 0, 0, "${weechat_runtime_dir}/weechat_fifo_${info:pid}", NULL, 0,
|
||||
NULL, NULL, NULL,
|
||||
fifo_config_change_file_path, NULL, NULL,
|
||||
NULL, NULL, NULL);
|
||||
|
||||
Reference in New Issue
Block a user