OVH Cloud OVH Cloud

xchat

5 réponses
Avatar
playload
salut a tous

je voudrais savoir si il existe un moyen de verifier si xchat est connecté a
un serveur.
c'est pour un test dans un script.
Je ne trouve pas de variable utile, mais peut etre que j'ai mal regarde.

merci de votre aide.

5 réponses

Avatar
lhabert
playload :

je voudrais savoir si il existe un moyen de verifier si xchat est connecté a
un serveur.
c'est pour un test dans un script.
Je ne trouve pas de variable utile, mais peut etre que j'ai mal regarde.


Peut-être jouer avec netstat.

Avatar
playload
Luc Habert wrote:

playload :

je voudrais savoir si il existe un moyen de verifier si xchat est
connecté a un serveur.
c'est pour un test dans un script.
Je ne trouve pas de variable utile, mais peut etre que j'ai mal regarde.


Peut-être jouer avec netstat.


je pensais a une variable interne a xchat car c'est pour un script un perl.
mais il y a peut etre un autre moyen qu'une variable. ???!!!

Merci quand meme Luc.


Avatar
R12y
je pensais a une variable interne a xchat car c'est pour un script un perl.
mais il y a peut etre un autre moyen qu'une variable. ???!!!


Tu peux faire des scripts python dans XChat. ça peut etre un truc en
boucle infinie qui liste l'ensemble des serveur auxquel il est connecté et
qui l'écrit dans un fichier:

http://labix.org/xchat-python#head-9dd2bf49d38088a504fa515bfc517f636927ea86

--
Telephone portable "intelligent" (SmartPhone) GSM, GPRS,...
Il est sous Linux, ne coute pas trop cher,...
http://www.it2l.com/product_info.php?cPath‘&products_idE6

Avatar
playload
R12y wrote:


je pensais a une variable interne a xchat car c'est pour un script un
perl. mais il y a peut etre un autre moyen qu'une variable. ???!!!


Tu peux faire des scripts python dans XChat. ça peut etre un truc en
boucle infinie qui liste l'ensemble des serveur auxquel il est connecté et
qui l'écrit dans un fichier:


http://labix.org/xchat-python#head-9dd2bf49d38088a504fa515bfc517f636927ea86




Merci R12y, mais j'ai deja assez de mal avec perl... alors le python......

Mais il a avait une fontion interresante, xchat.get_info_server.

Si seulement il existait une commande inter equivalante de
style : /server_get_info


Encore merci


Avatar
playload
playload wrote:

R12y wrote:


je pensais a une variable interne a xchat car c'est pour un script un
perl. mais il y a peut etre un autre moyen qu'une variable. ???!!!


Tu peux faire des scripts python dans XChat. ça peut etre un truc en
boucle infinie qui liste l'ensemble des serveur auxquel il est connecté
et qui l'écrit dans un fichier:




http://labix.org/xchat-python#head-9dd2bf49d38088a504fa515bfc517f636927ea86




Merci R12y, mais j'ai deja assez de mal avec perl... alors le python......

Mais il a avait une fontion interresante, xchat.get_info_server.

Si seulement il existait une commande inter equivalante de
style : /server_get_info


Encore merci


merci R12y

j'ai trouve l'equivalant de ta fonction en perl :

Xchat::get_info( $id )

* $id - one of the following case sensitive values
host real hostname of the current server

Encore merci a tous

Bye