AppleScript and cupsd woes
AppleScript and cupsd woes
- Subject: AppleScript and cupsd woes
- From: Geoff Franks <email@hidden>
- Date: Thu, 19 Oct 2006 12:01:41 -0400
- Thread-topic: AppleScript and cupsd woes
I recently stumbled upon a fix for Kerberos printing posted here last
December (thread AD Printing, for those interested). Unfortunately, this
works only while the user has a valid ticket. If the ticket expired, it
makes no attempt to renew the ticket, not inform the user of any failure.
The document will simply not print.
Since the basics of the fix involve a shell script run by cupsd, I modified
it to do a kinit -R, or if that fails, applescript a new ticket grant
through Kerberos.app. Additionally, I exit with an error code if I'm unable
to finish the new grant successfully. This works perfectly, provided that
Kerberos.app is already running. However, if it is not, I see the Kerberos
app bounce once in the dock, then stop, and the script continues on, and
fails, stopping the queue.
The same code works when run from a standalone script under any
circumstances (Kerberos.app open or closed). I've tried a simple open -a,
instead of AppleScript with no success either. Does anyone know why cupsd
might be breaking the Kerberos.app launch?
Geoff Franks
Sr. Systems Administrator
Hauptman-Woodward Institute
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden