I would like to run a python3 program at the end I want to ask to reboot or not. If I am not around I would like it to reboot.
Code: Select all
RB = input('Reboot (Y) or N')
RB = RB.upper()
RB = RB[0]
if RB == "N":
exit()
pass
else:
system('sudo reboot')
exit()
pass
is there some other command that will wait for an input for 30 sec?