Run bash scripts on login
Hi All,
I have written a script to help identify some physical security issues we are having in one of the labs at the school campus. It is a bash script that takes a photo of the use on login using the built in iSight camera.
I have tried to get this to run on login using the following
[code]sudo defaults write com.apple.loginwindow LoginHook /path/to/script[/code]
This doesn't work. I am wondering if LoginHooks can only run AppleScripts or I can get my bash script to run.
Help greatly appreciated!