first of all, sorry for the imprecise title (if someone has a better suggestion how to name this thread feel free to tell me), my question is not that complicated at all.
I wrote a small program in Python where i execute a command line:
import os
os.system("sudo rtcwake -m off -s 100")
As some of you may know it is simply an rtcwake command that shuts down the computer and turns it on again (after 100 seconds).
I would like to implement this program in a way that when executed (from the console for example) the user gets to enter the number of seconds the computer should be down, instead of having the 100 seconds predetermined.
What is the correct way to do this?