Re: Is there a "batchable" way to do ktutil list

Ken Hornstein <[email protected]>
Newsgroups gmane.comp.encryption.kerberos.general
Message-ID <[email protected]>
>Is there another command that is more script-friendly?  If not, can 
>someone share a good way to pass args to the MIT ktutil?

I think "klist -k" does what you want.  You can pass arguments to ktutil
in a script via stdin and parse the output (we do that via a script),
that looks something like:

	(echo "rkt $keytab" ; echo "list") | ktutil | [parse output]

The script this is from is so old, it predates the widespread use of the
'printf' command; that would probably be cleaner now.

--Ken
________________________________________________
Kerberos mailing list           [email protected]
https://mailman.mit.edu/mailman/listinfo/kerberos
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.