planktoscope/scripts/killer.sh
2019-12-13 14:51:50 -08:00

9 lines
251 B
Bash

#!/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 "$scrip_name" | head -1 | awk '{print $1}'`
python3.7 $HOME/PlanktonScope/scripts/recover.py