2022-10-21 12:53:06 Hey, FYI, guys - if anyone uses a Mac for work and your employer has it rigged to screen lock after some ridiculously short period of time, running this takes care of the problem: 2022-10-21 12:53:14 #!/bin/bash 2022-10-21 12:53:15 while : ; do 2022-10-21 12:53:17 sleep 300 2022-10-21 12:53:19 echo $(date +"%m-%d %H:%M:%S") 2022-10-21 12:53:21 osascript -e 'tell application "System Events" to keystroke ""' 2022-10-21 12:53:23 done 2022-10-21 12:53:29 The echo is an extra frill, of course. 2022-10-21 12:53:53 It simulates a keystroke, using the null char, every five minutes. 2022-10-21 12:54:42 I first wrote it using \n, but I decided that was dangerous. 2022-10-21 12:55:04 A random Enter would come along, and I could imagine being at just the wrong place in some console command and having a real problem on my hands. 2022-10-21 12:55:11 Bad choice from the jump. 2022-10-21 12:55:35 sudo rm -r * 2022-10-21 12:57:48 KipIngram: if you can install programs there's one called caffeine or something that may be worth looking into 2022-10-21 13:06:22 Well, crap - the null doesn't work. 2022-10-21 13:06:28 Guess I'll go with space. 2022-10-21 13:06:35 Or try it at least. 2022-10-21 13:07:12 Actually that's dangerous too, isn't it? 2022-10-21 13:07:25 A space after the * in that rm command would be nasty too. 2022-10-21 13:07:30 Ok, just some letter then. 2022-10-21 13:07:50 And if it creates an occasional error, at least it won't lead to disaster. 2022-10-21 14:51:22 You can't move the mouse? 2022-10-21 14:51:27 Or is this a terminal 2022-10-21 15:02:49 moving the mouse could also be problematic 2022-10-21 15:29:45 True 2022-10-21 15:30:25 Although I think wiggling it one pixel if it hasn't moved in 4 minutes might not be as damaging as pressing a key 2022-10-21 15:31:31 or have a bird that presses the shift key when you step away 2022-10-21 15:32:02 (note: windows may do crazy things if you hit the shift key too many times) 2022-10-21 19:23:16 Or a cat? 2022-10-21 19:23:54 I know some law enforcement agencies have a USB "mouse jiggler" tool to prevent it from locking.. 2022-10-21 19:47:22 lagash: a properly secured computer will lock the screen when such is plugged in. Why? because those things have completely diffrent vendir id and product id than usual Human Interface Devices connected 2022-10-21 19:48:38 entirely depends on what sector this is working in 2022-10-21 19:49:05 properly secured for a DoD contractor vs a startup in silicon valley are massively different 2022-10-21 19:50:06 or secured by a hacker that has gotten back to too many chickens on rafts 2022-10-21 19:51:35 are all your devices ``properly secured'' or are you one of those ``chickens'' 2022-10-21 19:51:59 no comment 2022-10-21 19:52:14 *bawk*