RDS
Posts: 776
Joined: Tue Oct 06, 2015 8:17 am
Location: Lancashire, UK

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

Sat Jun 03, 2017 10:34 am

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.

User avatar
DougieLawson
Posts: 39296
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

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

Sat Jun 03, 2017 10:39 am

Use the either the kill or killall command.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

RDS
Posts: 776
Joined: Tue Oct 06, 2015 8:17 am
Location: Lancashire, UK

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

Sat Jun 03, 2017 12:15 pm

Thanks, what in terminal window?

User avatar
DougieLawson
Posts: 39296
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

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

Sat Jun 03, 2017 12:28 pm

RDS wrote:Thanks, what in terminal window?
Is your version of http://google.com broken?
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

RDS
Posts: 776
Joined: Tue Oct 06, 2015 8:17 am
Location: Lancashire, UK

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

Sat Jun 03, 2017 12:47 pm

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,

Return to “Python”