Hi everyone, I have this script that I'm trying to run at logon every time a user logs in. So far I've tried LoginHook and launchd and can't seem to get it right. Using LoginHook: When I login as an administrator I get it to work every time but once the computer is joined to the OD and AD and use a network account it stops working properly. Can't really put my finger on it... Either it stops working completely or it only works after a restart/power on. My understanding is that the login hook executes under root privileges. Because the network accounts take longer to authenticate the script seems to run before the user is logged in completely. I had to put a sleep 20 command in the script so that the .app runs and mounts the network shares using the logged in user not root and that works fine. From what I've read online, lauchd is the way to go, but it can only run during startup or on demand. Still not sure why it doesn't execute properly every time during logon. So intermittent Any suggestions are welcome EDIT: to make things more clear, i'm trying to run an .app and using a simple script to execute it
Yes I am, thank you, but that only works for accounts already created on the machine if I'm not mistaken