From f55dab7546aaf39dff4d6884182891ef40740c6f Mon Sep 17 00:00:00 2001 From: Holger Weber Date: Fri, 13 Mar 2026 14:11:32 +0100 Subject: [PATCH] Added script to kill python process of inkscape. --- inkscape/killegg.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 inkscape/killegg.sh diff --git a/inkscape/killegg.sh b/inkscape/killegg.sh new file mode 100755 index 0000000..3f68b04 --- /dev/null +++ b/inkscape/killegg.sh @@ -0,0 +1,15 @@ +#!/bin/bash +# killegg.sh +# Simple helper script to terminate any running instance of the Python program "eggbot.py" which is started by inkscape. +# It searches for the process by name and sends a termination signal. + +PROCESS="eggbot.py" + +PIDS=$(pgrep -f "$PROCESS") + +if [ -z "$PIDS" ]; then + echo "Kein laufender Prozess für $PROCESS gefunden." +else + echo "Beende Prozess(e): $PIDS" + kill $PIDS +fi