[Chilli] chilli_query output
lferreira at cabocom.cv
Tue Oct 29 10:39:59 UTC 2013
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.
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:
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
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,
> Chilli mailing list
> Chilli at coova.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Chilli