Login Hooks

How to execute scripts when a user logs into, or out of, an OS X workstation.

Apple tech note
Bombich.com article
Scripting Login Tasks in OS X

Create a hook:

sudo defaults write com.apple.loginwindow LoginHook /path/to/script

See what the login hook is set to:

sudo defaults read com.apple.loginwindow LoginHook

Technology:

Recent Updates

  • 2 years 3 months ago
  • 2 years 3 months ago
  • 2 years 3 months ago
    php 8.x
  • 2 years 3 months ago
    10.6.7
  • 2 years 3 months ago
    Drop Centos 5/6 stuff