I'd like to run a shell script every night using launchd when the laptop (M1 MBA) lid is closed.
I can ssh in to the machine when the lid is closed and run the script from the command line. But running via launchd doesn't seem to work.
	
		
			
		
		
	
				
			I can ssh in to the machine when the lid is closed and run the script from the command line. But running via launchd doesn't seem to work.