Aug-06-2017, 11:12 PM
On a Windows PC I'm working on some code to do a task every 'n' minutes.
Normally the program will run constantly unless the system user/admin wishes to stop it.
The plans were to use a while loop to do the job and sleep to create the 'n' minute delay between each time the task gets done.
But, once the system goes into an 'infinite' while loop... what is the proper way for the user/admin to end the program (while loop) whenever they so decide?
Thanks for any help.
Normally the program will run constantly unless the system user/admin wishes to stop it.
The plans were to use a while loop to do the job and sleep to create the 'n' minute delay between each time the task gets done.
But, once the system goes into an 'infinite' while loop... what is the proper way for the user/admin to end the program (while loop) whenever they so decide?
Thanks for any help.