[Chilli] chilli_query output

Luis Ferreira lferreira at cabocom.cv
Tue Oct 29 10:39:59 UTC 2013


Hi Xavier,

 

Thanks for the input. I’ll try to figure out something with that and do some sort of script.

Post the results as soon as I hav time to work on that.

 

Regards,

Luis

 

De: Xabier Oneca -- xOneca [mailto:xoneca at gmail.com] 
Enviada: 29 de outubro de 2013 07:11
Para: Russell Mike; chilli at coova.org; Luis Ferreira
Assunto: Re: [Chilli] chilli_query output

 

It returns zero because chilli_query passed correctly the command to chilli daemon.

You can use the output of 'chilli_query list' to check if it succeeded.

El 26/10/2013 19:14, "Russell Mike" <radius.sir at gmail.com> escribió:



On Saturday, October 26, 2013, Xabier Oneca -- xOneca wrote:

Hello Luis,

Well, 'chilli_query' only checks command syntax and parameters and relays the command to 'chilli', printing then what it returns.

'chilli_query' only returns error if it finds any. If it relays correctly to 'chilli', then it will return success.

You can test success checking the return value of the command (usually value of $? In unix shell) should be zero.

 

 

 

No there is same 0 from $? If you type the command with an ip which is not online. I tested that !!! 

Thanks / RM

HTH
--
Xabier Oneca_,,_

El 23/10/2013 13:22, "Luis Ferreira" <lferreira at cabocom.cv> escribió:
>
> Hi everyone,
>
>  
>
> Sometimes I use the following command:
>
>  
>
> chilli_query -s /usr/local/var/run/chilli.vlanXX.sock logout ip XX.XX.XX.XX
>
>  
>
> The problem with that is that the command does not give any sort of output. How can I know if it was successfully or it failed to do it? Is any sort of output that I can enable it?
>
>  
>
> Kind Regards,
>
> Luis
>
>
> _______________________________________________
> Chilli mailing list
> Chilli at coova.org
> http://lists.coova.org/cgi-bin/mailman/listinfo/chilli

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.coova.org/pipermail/chilli/attachments/20131029/5c27e3bd/attachment.html>


More information about the Chilli mailing list