How I can execute a user logout script in mountain lion?
I've read that logouthook have been deprecated but I can't find how execute a logout script without this method.
Anyone may help me?
Regards
Alessandro
iMac, OS X Mountain Lion (10.8.3)
I've read that logouthook have been deprecated but I can't find how execute a logout script without this method.
Anyone may help me?
Regards
Alessandro
iMac, OS X Mountain Lion (10.8.3)
Anyone may help??
Thank you very much!
Hello Alessandro,
Is this in Server or client?
Hello BDAqua,
thank you for your response.
The question is about the client version of Mountain Lion.
During last day I've tried to search a solution with launchd without success.
Alessandro.
Hello baltwo,
I've read these article yesterday but the first one is about the LoginHook that Apple, in the second article, says that are deprecated.
The second article say to use launchd instead LoginHook and LogoutHook.
I've tried to do this but launchd works (I think...) only to launch a login script with the option RunAtLoad.
Nothing is specified with regard to the logout script.
PS.
Launchd with login script work only with restart but not with a shutdown and a power-on ... I'm investigating this behavior!!
I'm sorry for my poor english.
Ah! The proverbial missing information. Although deprecated, they should still work, but I don't run any, so can't test. See launchd jobs for info on that procedure. Alternatively, do a google search for launchd jobs site:developer.apple.com which should give you more sources to check.
How I can execute a user logout script in mountain lion?