main.py exec and kill

master
root 8 years ago
parent 800bc9473c
commit 4c07482ef5

@ -18,6 +18,7 @@ do
if [ -e "${MAINPY}" ] if [ -e "${MAINPY}" ]
then then
echo "main.py found" echo "main.py found"
$(python ${MAINPY})&
fi fi
if [ -e "${MAINPD}" ] if [ -e "${MAINPD}" ]
then then
@ -25,6 +26,11 @@ do
fi fi
else else
echo "floppy out (no fs detected)" echo "floppy out (no fs detected)"
if [ "$(pgrep python)" ]
then
echo "python still running ... killing"
pkill -9 python
fi
fi fi
fi fi
done done

Loading…
Cancel
Save