Python Forum
How to restart Python after input change
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to restart Python after input change
#1
Hi,

A nooby here :-)

I have a python .py file that gets its time to start and end its function, from a text file.

The .py file is manually initiated in a Dos box on Win 10 1909.

I was wondering how I should correctly restart the script when I make a time change in the text file.

This what I am doing..
Ctrl C to end the running py script in the Dos box
close the Dos box
Make the change in the text file, save it
Open the Dis box.. Cmd
Start the py file and it does show the correct time to start the function.

Is this correct or should I not have to do as much or do more in case there is a cache etc.

As I said.. a nooby.

Thank you

oz

also...While the script is running, is it okay to leave the Dos box open, as it shows the time of the next function start in the text file? Or should I close it?
Reply
#2
Any help here please?

Summary..

When I manually stop a script Ctrl C, do I have to close the Dos box to execute the stop, or can I just start the script again when ready?
Reply
#3
Pull up the task manager. Do you see the Windows Command Processor count go up when you start your python program? Does it go back down when you stop it using Ctrl C? If so, you are stopping the process.

Does that answer your question?
Reply
#4
Thank you, yes that will show me whether it is or is not going.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Change elements of array based on position of input data Cola_Reb 6 2,063 May-13-2022, 12:57 PM
Last Post: Cola_Reb
  Problem: Restart kernel onPydev console when trying to install a python package poppy2020 1 7,567 Nov-25-2020, 06:13 PM
Last Post: Larz60+
  How a Mac OS software can restart itself with admin permission in Python 3.7? Formationgrowthhacking 0 1,740 Sep-03-2020, 05:29 PM
Last Post: Formationgrowthhacking
  Using a button to kill and restart a script duckredbeard 3 3,247 Sep-01-2020, 12:53 AM
Last Post: duckredbeard
  Use of input function to change screen background color in Turtles Oldman45 3 4,743 Jul-10-2020, 09:54 AM
Last Post: Oldman45
  Hotkey to restart code? DannyB 1 2,696 May-20-2020, 02:52 AM
Last Post: michael1789
  Kernel needs to restart ErnestTBass 0 2,325 May-06-2020, 08:37 PM
Last Post: ErnestTBass
  Restart Error when using code from lesson book Kathleen57 2 2,216 Mar-13-2020, 09:18 PM
Last Post: Kathleen57
  While loop won't restart program :( TheDovah77 4 4,153 Apr-04-2019, 07:37 PM
Last Post: TheDovah77
  How do I permanently change a list after user's input? Ablazesphere 6 4,258 Oct-31-2018, 08:30 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020