[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: kadmin commands, was: kas commands



Don't shoot the messenger.  I figure if I delay to check all my facts  
I'll never get to forwarding comments at all.

Love, did I misunderstand the significance of sl_command() vice  
sl_loop()?  I assumed from the name that sl_command() was used if the  
command was on the unix command line while sl_loop() had something to  
do with looping at a prompt.

Begin forwarded message:

> From: Peter Scott <Peter.J.Scott@jpl.nasa.gov>
> Date: June 2, 2004 2:03:47 PM PDT
> To: "Henry B. Hotz" <hotz@jpl.nasa.gov>
> Subject: Re: kadmin commands, was: kas commands
>
> At 12:20 PM 6/2/2004, you wrote:
>> I think what he's saying is that if you put the command on the kadmin
>> Unix command line instead of entering it at a prompt then you should
>> get the status back.  Is that consistent with what you are seeing?
>
> No, I am doing all my kadmin commands on the Unix command line.  The  
> status I am talking about is the exit status of kadmin ($?, $status).
>
>> I had assumed that you were doing things like "kadmin -p <> get <>".
>> If you are doing things like
>> kadmin -p <>
>> > get <>
>> > exit
>> then not getting a valid status back would make sense to me.
>>
>>
>> On May 31, 2004, at 6:14 AM, Love wrote:
>>
>>> Its the long standing problem how to handle the return values from  
>>> the
>>> sl
>>> command parsing function, it are diffrent usage between sl_command()
>>> and
>>> sl_loop().
>>>
>>> sl_command() returns the value the function returned, but sl_loop
>>> abort the
>>> prompt loop on non 0/SL_BAD_COMMAND return values.
>>>
>>> Love
>>>
>>>
>>> "Henry B. Hotz" <hotz@jpl.nasa.gov> writes:
>>>
>>>> Not sure it's high priority, but I think Peter Scott has a point  
>>>> here.
>>>>
>>>> Begin forwarded message:
>>>>
>>>>> BTW, I don't know if you're connected to the people who maintain
>>>>> kadmin, but if so, please pass on my gripe that it returns a zero
>>>>> status code even when something plainly went wrong (e.g., trying to
>>>>> delete a nonexistent principal).
>>>> -------------------------------------------------------------------- 
>>>> -- --
>>>> ----
>>>> The opinions expressed in this message are mine,
>>>> not those of Caltech, JPL, NASA, or the US Government.
>>>> Henry.B.Hotz@jpl.nasa.gov, or hbhotz@oxy.edu
>> ---------------------------------------------------------------------- 
>> -- ----
>> The opinions expressed in this message are mine,
>> not those of Caltech, JPL, NASA, or the US Government.
>> Henry.B.Hotz@jpl.nasa.gov, or hbhotz@oxy.edu
>
> -- 
> Peter Scott
> Peter.J.Scott@jpl.nasa.gov
>
>
------------------------------------------------------------------------ 
----
The opinions expressed in this message are mine,
not those of Caltech, JPL, NASA, or the US Government.
Henry.B.Hotz@jpl.nasa.gov, or hbhotz@oxy.edu