From 4c07482ef5f94c6da7ab5ab27a8089283c06fb7e Mon Sep 17 00:00:00 2001 From: root Date: Sun, 19 Mar 2017 16:30:50 +0100 Subject: [PATCH] main.py exec and kill --- sbin/thewhispererindarkness.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sbin/thewhispererindarkness.sh b/sbin/thewhispererindarkness.sh index 249ab21..5e5ad5d 100755 --- a/sbin/thewhispererindarkness.sh +++ b/sbin/thewhispererindarkness.sh @@ -18,6 +18,7 @@ do if [ -e "${MAINPY}" ] then echo "main.py found" + $(python ${MAINPY})& fi if [ -e "${MAINPD}" ] then @@ -25,6 +26,11 @@ do fi else echo "floppy out (no fs detected)" + if [ "$(pgrep python)" ] + then + echo "python still running ... killing" + pkill -9 python + fi fi fi done