How to stop/terminate a python script from running?

Ferry's picture

Offline

Joined: Sep 20, 2018

Replies: 8
How to stop/terminate a python script from running?
July 12, 2019 - 6:28pm

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. 

Abhiemanyu Pandit's picture

Offline

Joined: Jan 21, 2019

Replies: 42
How to stop/terminate a python script from running?
July 12, 2019 - 6:31pm

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. 

Ferry's picture

Offline

Joined: Sep 20, 2018

Replies: 8
How to stop/terminate a python script from running?
July 12, 2019 - 6:41pm

yeah. it worked. thanks. it solved the problem

Muhammad Umar's picture

Offline

Joined: Apr 09, 2020

Replies: 55
Program Terminate/Stop
May 9, 2020 - 2:42pm

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.

Technical Shahzad's picture

Offline

Joined: May 23, 2020

Replies: 48
Terminating Python IDLE Running Code
May 26, 2020 - 2:32pm

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.