Create killer.sh

This commit is contained in:
tpollina 2019-12-13 12:26:35 -08:00 committed by GitHub
parent 050f50a3c1
commit 502fe343f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

6
scripts/killer.sh Normal file
View file

@ -0,0 +1,6 @@
#!/bin/bash
#Run this script using this type of command line : bash killer.sh name_of_the_python_script_to_kill.py
scrip_name=$1
kill -9 `ps ax | grep "python3.7 $scrip_name" | head -1 | awk '{print $1}'`