Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
How to log out *background* users from command line
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="asiajason" data-source="post: 1327747" data-attributes="member: 168551"><p>I'm looking for a way to log out a background user who forgot to log out - from the terminal. </p><p></p><p>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) </p><p></p><p>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).</p><p></p><p>this is the closest I have gotten so far: but this will obviously log me out.</p><p> osascript -e 'tell application "System Events" to log out'</p><p></p><p>Thank you,</p><p>Jason</p></blockquote><p></p>
[QUOTE="asiajason, post: 1327747, member: 168551"] 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 [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
How to log out *background* users from command line
Top