I am running Python on Ubuntu. I have been running a python script in a console session however I have now created it as a scheduled cron job.
I also want another job scheduled to kill the script however when I use
killl - 9 python3 script.py
I don't get the usual messages logged through Python telling me that the processes have exited
When running in a console session, I would normally kill the script using Ctrl-C. Is there a way in which to do this?