title: How do I check (in shell) whether I have a valid Kerberos ticket for a specific service?
body: <p>I would like to be able to check (in my <code>bash</code> script) whether I have a valid unexpired ticket for a specific service. I can get this information by hand if I do <code>klist</code>, but it would be a bit of work to programmatically parse the expiration time, service principals, etc. Is there an easier way to do this? Thanks.</p>