[Chilli] chilli_query output

Xabier Oneca -- xOneca xoneca at gmail.com
Tue Oct 29 08:10:50 UTC 2013


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/1dcce3aa/attachment.html>


More information about the Chilli mailing list