Re: -LoginHook & -LogoutHook
Re: -LoginHook & -LogoutHook
- Subject: Re: -LoginHook & -LogoutHook
- From: Ron Wilson <email@hidden>
- Date: Thu, 1 Aug 2002 09:45:25 -0700
On Wednesday, July 31, 2002, at 03:02 PM, cocoa-dev-
email@hidden wrote:
Does anyone know if it is possible to have a loginhook and logouthook?
exp:
console "/System/Library/CoreServices/loginwindow.app/loginwindow
-PowerOffDisabled YES -LoginHook
/Users/Administrator/Scripts/mailLoginToAdmin -LogoutHook
/Users/Administator/Scripts/logout" vt100 on secure
window=/System/Library/CoreServices/WindowServer
onoption="/usr/libexec/getty std.9600"
Any info would be great. Thanks.
Have you read
http://developer.apple.com/techpubs/macosx/Essentials/SystemOverview/BootingLogin/
Customization_Techniques.html ?
I've gotten both login and logout hooks to work.
The docs say that both the login and logout hooks can be "The full path
to a script or tool to run when the user succesfully logs in/out."
I've been able to use a script for login but not for logout (I suspect
that the logout hook is run after loginwindow has shut down the user's
shell). The only success with logout has been to create and use a tool.
Ron
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.