linux kill cronjob script running

- Posted in Python by

check script run

ps aux | grep python

kill proses

kill $(ps aux | grep '[p]ython script_name.py' | awk '{print $2}')

or

pkill -f csp_build.py

_https://stackoverflow.com/questions/19541634/how-to-kill-a-running-python-process

_https://stackoverflow.com/questions/3510673/find-and-kill-a-process-in-one-line-using-bash-and-regex

Tags: