Quantcast
Viewing all articles
Browse latest Browse all 5114

Python • Re: UPS Shutdown Python Script

Change

Code:

time.sleep(1)
to

Code:

time.sleep(10)
Or you can leave it at 1 and just change the shutdown command to wait for the 10 seconds instead of now as it is in the code. You can find out how to do that by opening a terminal and executing

Code:

man shutdown
and that will display the help for the shutdown command and all it's options.

Statistics: Posted by memjr — Wed Jun 12, 2024 2:14 am



Viewing all articles
Browse latest Browse all 5114

Trending Articles