osx - Auto login on Mac OS through a process running as a daemon -


i have python script running daemon on mac os , keeps looking particular usb drive on system, if usb ejected, system locked using following command

/system/library/coreservices/menu\ extras/user.menu/contents/resources/cgsession -suspend

now after screen locked, script still running , still looking usb, possible unlock screen when usb inserted in system without having user enter password?


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -