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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -