How to check for a pending reboot from python ? | SoloLearn: Learn to code for FREE!

+3

How to check for a pending reboot from python ?

6/18/2020 3:05:59 PM

Sudhara Awishka

1 Answer

New Answer

+1

I checked out some stackoverflow threads but didn't find the thing exact thing that you need. But I think these resources could be useful https://stackoverflow.com/questions/43596427/how-to-check-if-a-server-needs-a-reboot https://stackoverflow.com/questions/21287966/check-for-pending-reboots You know? Google is your friend. There were lots of useful stuff so I recommend you to search some of them. I'd try to find a way myself too EDIT: There were these methods in os module ['sched_get_priority_min', 'sched_getaffinity', 'sched_getparam', 'sched_getscheduler', 'sched_param', 'sched_rr_get_interval', 'sched_setaffinity', 'sched_setparam', 'sched_setscheduler', 'sched_yield'] Unfortunately I can't try it from my phone as I get permission errors. Also I'm not pro that those os stuff ^^ so I hope this would give you a hint about what you should do