/[weechat]/weechat/doc/weechat_doc_pt.texi
ViewVC logotype

Diff of /weechat/doc/weechat_doc_pt.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.19 by flashcode, Fri Mar 11 20:05:43 2005 UTC revision 1.20 by flashcode, Sun Mar 20 07:22:53 2005 UTC
# Line 35  Line 35 
35    
36  @title WeeChat - Guia do Utilizador  @title WeeChat - Guia do Utilizador
37  @subtitle Cliente de IRC rapido, leve e extencivel  @subtitle Cliente de IRC rapido, leve e extencivel
38  @subtitle Documenta@,{c}@~ao do WeeChat v0.1.1-cvs - 11 de Mar@,{c}o de 2005  @subtitle Documenta@,{c}@~ao do WeeChat v0.1.1 - 20 de Mar@,{c}o de 2005
39    
40  @image{weechat_image}  @image{weechat_image}
41    
# Line 206  Segue agora as instru@,{c}@~oes para com Line 206  Segue agora as instru@,{c}@~oes para com
206  * Invocar o WeeChat::  * Invocar o WeeChat::
207  * Recursos de teclado::  * Recursos de teclado::
208  * Comandos do WeeChat::  * Comandos do WeeChat::
209    * FIFO pipe::
210  @end menu  @end menu
211    
212  @node Invocar o WeeChat, Recursos de teclado, Utilizacao, Utilizacao  @node Invocar o WeeChat, Recursos de teclado, Utilizacao, Utilizacao
# Line 309  Comute ao amortecedor pelo n@'umero@* Line 310  Comute ao amortecedor pelo n@'umero@*
310  @*  @*
311  @end table  @end table
312    
313  @node Comandos do WeeChat, , Recursos de teclado, Utilizacao  @node Comandos do WeeChat, FIFO pipe, Recursos de teclado, Utilizacao
314  @section Comandos do WeeChat  @section Comandos do WeeChat
315    
316  N@~AO ESCRITO !  N@~AO ESCRITO !
317    
318    @node FIFO pipe, , Comandos do WeeChat, Utilizacao
319    @section FIFO pipe
320    
321    You can remote control WeeChat, by sending commands or text to a FIFO pipe
322    (you have to enable option "irc_fifo_pipe", it is disabled by default).@*
323    The FIFO pipe is located in ~/.weechat/ and is called "weechat_fifo_xxxxx"
324    (where xxxxx is the process ID (PID) of running WeeChat).@*
325    So if many WeeChat are running, you have many FIFO pipe, one for each session.@*
326    @*
327    The syntax for the FIFO pipe commands/text is:@*
328    @command{server,channel *text or command here}@*
329    where server and channel are optional, but if channel is here, server should be too.@*
330    @*
331    Some examples:
332    @table @asis
333    @item @bullet{} change your nick on freenode to "mynick|out":
334    @*
335    @command{echo "freenode */nick mynick|out" >~/.weechat/weechat_fifo_12345}
336    @item @bullet{} display text on #weechat channel:
337    @*
338    @command{echo "freenode,#weechat *hello everybody!" >~/.weechat/weechat_fifo_12345}
339    @item @bullet{} display text on current channel (buffer displayed by WeeChat):
340    @*
341    @command{echo "*hello!" >~/.weechat/weechat_fifo_12345}@*
342    @*
343    @b{Warning:} this is dangerous and you should not do that except if you know what you do!
344    @item @bullet{} send 2 commands to unload/reload Perl scripts (you have to separate them with \n):
345    @command{echo -e "freenode */perl unload\nfreenode */perl autoload" >~/.weechat/weechat_fifo_12345}
346    @end table
347    @*
348    You can write a script to send command to all running WeeChat at same time, for example:@*
349    @verbatim
350     #!/bin/sh
351     if [ $# -eq 1 ]; then
352         for fifo in $(/bin/ls ~/.weechat/weechat_fifo_* 2>/dev/null); do
353             echo -e "$1" >$fifo
354         done
355     fi
356    @end verbatim
357    @*
358    If the script is called "auto_weechat_command", you can run it with:@*
359    @command{./auto_weechat_command "freenode,#weechat *hello"}
360    
361    
362  @c ******************************* Extencoes *********************************  @c ******************************* Extencoes *********************************
363    

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26