Page 1 of 1

How do I stop a Python Program that was started with cron

Posted: Sat Jun 03, 2017 10:34 am
by RDS
I am familiar with the use of CTRL-C to stop a Python program that is running in an IDLE window.
However, I have a Pi that is running a Python 3 Program as soon as the Pi is powered up, controlled by cron.

Is there any way of stopping this (cron controlled) program temporarily whilst I make some changes to it.

Re: How do I stop a Python Program that was started with cro

Posted: Sat Jun 03, 2017 10:39 am
by DougieLawson
Use the either the kill or killall command.

Re: How do I stop a Python Program that was started with cro

Posted: Sat Jun 03, 2017 12:15 pm
by RDS
Thanks, what in terminal window?

Re: How do I stop a Python Program that was started with cro

Posted: Sat Jun 03, 2017 12:28 pm
by DougieLawson
RDS wrote:Thanks, what in terminal window?
Is your version of http://google.com broken?

Re: How do I stop a Python Program that was started with cro

Posted: Sat Jun 03, 2017 12:47 pm
by RDS
DougieLawson wrote: Is your version of http://google.com broken?
Ha Ha, very subtle. Google is now fixed!

Code: Select all

killall python3
does just what I wanted from the Terminal Window.
Thanks again,