Added script to kill python process of inkscape.
All checks were successful
Deploy firmware via FTP (master) / Build and FTP Sync (push) Successful in 2m24s
All checks were successful
Deploy firmware via FTP (master) / Build and FTP Sync (push) Successful in 2m24s
This commit is contained in:
15
inkscape/killegg.sh
Executable file
15
inkscape/killegg.sh
Executable file
@@ -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
|
||||
Reference in New Issue
Block a user