planktoscope/scripts/killer.sh

9 lines
251 B
Bash
Raw Normal View History

2019-12-13 21:26:35 +01:00
#!/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
2019-12-13 23:51:50 +01:00
kill -9 `ps ax | grep "$scrip_name" | head -1 | awk '{print $1}'`
2019-12-13 22:03:07 +01:00
python3.7 $HOME/PlanktonScope/scripts/recover.py