September 28, 2022

Robotic Notes

All technology News

Log a User Out from Command Line

1 min read

Automation is a system administrator, support agent, and tech savvy person’s dream. Automating tasks via scripts remotely helps to get clients out of trouble or even the organization itself. Oftentimes big updates can require users log out. Logging a user out from the command line is super easy on Macs!

To log a user out of macOS with a confirmation warning, execute the following from command line:

osascript -e 'tell app "System Events" to log out'

To force log out of macOS without warning, execute the following from command line:

osascript -e 'tell application "loginwindow" to  «event aevtrlgo»'

osascript is a really amazing utility, one that lets you change system volume, send iMessages, and identify app IDs. Readable automation commands? Priceless!

Website performance monitoring
Website performance monitoring
Website performance monitoring
Website performance monitoring
  • From Webcam to Animated GIF: the Secret Behind chat.meatspac.es!
  • CSS 3D Folding Animation
  • JavaScript Copy to Clipboard

    JavaScript Copy to Clipboard

    “Copy to clipboard” functionality is something we all use dozens of times daily but the client side API around it has always been lacking; some older APIs and browser implementations required a scary “are you sure?” – style dialog before the content would be copied to clipboard – not great for …

  • Create a Dojo Lightbox with dojox.image.Lightbox

    Create a Dojo Lightbox with dojox.image.Lightbox

    One of the reasons I love the Dojo Toolkit is that it seems to have everything. No scouring for a plugin from this site and then another plugin from that site to build my application. Buried within the expansive dojox namespace of Dojo is



Source link