I'm looking for a way to log out a background user who forgot to log out - from the terminal.
I know this is trivial in the *nix world, just killing a process probably; I just can't find the command to do it in Mac's flavor (I'm a casual *nix shell user)
BTW, I don't want the Prefs->Security->General "logout after inactivity" setting.... that logs out everybody (including me) and I can't have my account logged out (due to running processes).
this is the closest I have gotten so far: but this will obviously log me out.
osascript -e 'tell application "System Events" to log out'
Thank you,
Jason
I know this is trivial in the *nix world, just killing a process probably; I just can't find the command to do it in Mac's flavor (I'm a casual *nix shell user)
BTW, I don't want the Prefs->Security->General "logout after inactivity" setting.... that logs out everybody (including me) and I can't have my account logged out (due to running processes).
this is the closest I have gotten so far: but this will obviously log me out.
osascript -e 'tell application "System Events" to log out'
Thank you,
Jason