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

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