cron run python kill code example Example: linux kill python ps -elf | grep python kill -9 <whatever_the_PID_is>