Saturday, December 21, 2024
HomeSoftware DevelopmentLog a Consumer Out from Command Line

Log a Consumer Out from Command Line

[ad_1]

Automation is a system administrator, help agent, and tech savvy individual’s dream. Automating duties through scripts remotely helps to get shoppers out of bother and even the group itself. Oftentimes huge updates can require customers log off. Logging a consumer out from command line is tremendous straightforward on Macs!

To log a consumer out of macOS with a affirmation warning, execute the next from command line:

osascript -e 'inform app "System Occasions" to log off'

To pressure log off of macOS with out warning, execute the next from command line:

osascript -e 'inform utility "loginwindow" to  «occasion aevtrlgo»'

osascript is a extremely superb utility, one that allows you to change system quantity, ship iMessages, and determine app IDs. Readable automation instructions? Priceless!

  • fetch API

    One of many worst saved secrets and techniques about AJAX on the net is that the underlying API for it, XMLHttpRequest, wasn’t actually made for what we have been utilizing it for.  We have achieved nicely to create elegant APIs round XHR however we all know we will do higher.  Our effort to…

  • 5 More HTML5 APIs You Didn’t Know Existed

    The HTML5 revolution has supplied us some superior JavaScript and HTML APIs.  Some are APIs we knew we have wanted for years, others are leading edge cellular and desktop helpers.  No matter API power or goal, something to assist us higher do our job is a…

  • Create a Simple Dojo Accordion

    Let’s be sincere:  although all of us giggle about how low cost of a thrill JavaScript accordions have turn into on the net, they continue to be an efficient, helpful widget.  A lot of content material, small quantity of area.  Dojo’s Dijit library gives an extremely merely methodology by which you’ll be able to…

  • Using jQuery and MooTools Together

    There’s but another excuse to grasp a couple of JavaScript library: you should utilize a few of them collectively! Since MooTools is prototype-based and jQuery shouldn’t be, jQuery and MooTools could also be used collectively on the identical web page. The XHTML and JavaScript jQuery is namespaced so the…


[ad_2]
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments