210 |
* Ficheros de configuracion:: |
* Ficheros de configuracion:: |
211 |
* Atajos de teclado:: |
* Atajos de teclado:: |
212 |
* Comandos WeeChat:: |
* Comandos WeeChat:: |
213 |
* FIFO pipe:: |
* Canal FIFO:: |
214 |
@end menu |
@end menu |
215 |
|
|
216 |
@node Iniciar WeeChat, Ficheros de configuracion, Uso, Uso |
@node Iniciar WeeChat, Ficheros de configuracion, Uso, Uso |
697 |
@* |
@* |
698 |
@end table |
@end table |
699 |
|
|
700 |
@node Comandos WeeChat, FIFO pipe, Atajos de teclado, Uso |
@node Comandos WeeChat, Canal FIFO, Atajos de teclado, Uso |
701 |
@section Comandos WeeChat |
@section Comandos WeeChat |
702 |
|
|
703 |
Comandos internos WeeChat:@* |
Comandos internos WeeChat:@* |
1177 |
|
|
1178 |
@end table |
@end table |
1179 |
|
|
1180 |
@node FIFO pipe, , Comandos WeeChat, Uso |
@node Canal FIFO, , Comandos WeeChat, Uso |
1181 |
@section FIFO pipe |
@section Canal FIFO |
1182 |
|
|
1183 |
You can remote control WeeChat, by sending commands or text to a FIFO pipe |
Puedes controlar WeeChat a distantia, enviando comandos o texto a un canal FIFO |
1184 |
(you have to enable option "irc_fifo_pipe", it is disabled by default).@* |
(debes activar la opci@'on "irc_fifo_pipe" que est@'a desactivada por defecto).@* |
1185 |
The FIFO pipe is located in ~/.weechat/ and is called "weechat_fifo_xxxxx" |
El canal FIFO est@'a dentro del directorio ~/.weechat/ y se llama |
1186 |
(where xxxxx is the process ID (PID) of running WeeChat).@* |
"weechat_fifo_xxxxx" (donde xxxxx es el ID del proceso (PID) de WeeChat).@* |
1187 |
So if many WeeChat are running, you have many FIFO pipe, one for each session.@* |
Entonces si tienes varios WeeChat que se est@'an ejecutando, tendr@'as varios |
1188 |
@* |
canales FIFO, uno por cada sesi@'on.@* |
1189 |
The syntax for the FIFO pipe commands/text is:@* |
@* |
1190 |
@command{server,channel *text or command here}@* |
La sintaxis para enviar comandos o texto dentro del canal FIFO es la siguiente:@* |
1191 |
where server and channel are optional, but if channel is here, server should be too.@* |
@command{servidor,canal *texto o comando aqu@'i}@* |
1192 |
|
donde el serviros y el canal son opcionales pero si precisa el canal, debes |
1193 |
|
precisar tambi@'en el servidor.@* |
1194 |
@* |
@* |
1195 |
Some examples: |
Algunos ejemplos: |
1196 |
@table @asis |
@table @asis |
1197 |
@item @bullet{} change your nick on freenode to "mynick|out": |
@item @bullet{} cambiar el seud@'onimo en freenode por "mynick|out": |
1198 |
@* |
@* |
1199 |
@command{echo "freenode */nick mynick|out" >~/.weechat/weechat_fifo_12345} |
@command{echo "freenode */nick mynick|out" >~/.weechat/weechat_fifo_12345} |
1200 |
@item @bullet{} display text on #weechat channel: |
@item @bullet{} escribir texto en el canal #weechat: |
1201 |
@* |
@* |
1202 |
@command{echo "freenode,#weechat *hello everybody!" >~/.weechat/weechat_fifo_12345} |
@command{echo "freenode,#weechat *@exclamdown{}Hola a todos!" >~/.weechat/weechat_fifo_12345} |
1203 |
@item @bullet{} display text on current channel (buffer displayed by WeeChat): |
@item @bullet{} escribir texto en el canal corriente (el que se puede visualizar en WeeChat actualmente) |
1204 |
@* |
@* |
1205 |
@command{echo "*hello!" >~/.weechat/weechat_fifo_12345}@* |
@command{echo "*¡Hola!" >~/.weechat/weechat_fifo_12345}@* |
1206 |
@* |
@* |
1207 |
@b{Warning:} this is dangerous and you should not do that except if you know what you do! |
@b{Advertencia:} esto es peligroso y no deber@'ias hacerlo.. salvo si lo que est@'as haciendo. |
1208 |
@item @bullet{} send 2 commands to unload/reload Perl scripts (you have to separate them with \n): |
@item @bullet{} enviar dos comandos para descargar y recargar los scripts Perl (tienes que separarlos con un \n): |
1209 |
@command{echo -e "freenode */perl unload\nfreenode */perl autoload" >~/.weechat/weechat_fifo_12345} |
@command{echo -e "freenode */perl unload\nfreenode */perl autoload" >~/.weechat/weechat_fifo_12345} |
1210 |
@end table |
@end table |
1211 |
@* |
@* |
1212 |
You can write a script to send command to all running WeeChat at same time, for example:@* |
Puedes escribir un script que envia los comandos a todos los programas WeeChat |
1213 |
|
que se est@'an ejecutando de momento. Por ejemplo:@* |
1214 |
@verbatim |
@verbatim |
1215 |
#!/bin/sh |
#!/bin/sh |
1216 |
if [ $# -eq 1 ]; then |
if [ $# -eq 1 ]; then |
1220 |
fi |
fi |
1221 |
@end verbatim |
@end verbatim |
1222 |
@* |
@* |
1223 |
If the script is called "auto_weechat_command", you can run it with:@* |
Si el script se llama "auto_weechat_command", puedes ejecutarlo hac@'i:@* |
1224 |
@command{./auto_weechat_command "freenode,#weechat *hello"} |
@command{./auto_weechat_command "freenode,#weechat *Hola"} |
1225 |
|
|
1226 |
|
|
1227 |
@c ******************************* Extensions ********************************* |
@c ******************************* Extensions ********************************* |