How to stop/terminate a python script from running?

Submitted by Ferry on Fri, 07/12/2019 - 18:28

hi guys. i am running a python code on raspberry pi3. Everything is running well but only thing which is annoying me is the continuous running of the python program. for exiting from the python program i need to close the terminal window and open terminal again then locate to the folder and run the python program again. i know this cannot be the right way to do this and it is time consuming. what to do if i want to terminate the program withtin single terminal window. 

hey it is very easy to terminate within the terminal. Just use a command "Ctrl + C" to exit from the program and you are done. you dont need to close the terminal window again and again. 

  Joined January 21, 2019      42
Monday at 12:12 PM

yeah. it worked. thanks. it solved the problem

  Joined September 20, 2018      8
Thursday at 02:04 PM

Yes according to you, it is very annoying thing to close and open again and again python IDLE and terminal. But the way to use just the command control Ctrl + C can stop the current program. Here, I would like to recommend you a new product EFB-IoT by SSLA platform supporting the micro-python and as well as C for programming, you can check this one also. Here I recommend you to contact the SSLA platform technical support team for getting better assistance regarding these kinds of issues.

  Joined April 09, 2020      55
Thursday at 02:40 PM

Yes, according to you, it is a very annoying thing to close and open again and again python IDLE and terminal. But the way to use just the command control Ctrl + C can stop the current program. Here, I would like to recommend you a new product EFB-IoT by Sierra Software Ltd. platform supporting the micro-python and as well as C for programming, you can check this one also. Here I recommend you to contact the Sierra Software Ltd. platform technical support team for getting better assistance regarding these kinds of issues.

  Joined May 23, 2020      47
Saturday at 02:49 PM