13 lines
234 B
Bash
13 lines
234 B
Bash
|
EXEC_SHELL_PATH=$(command -v bash)
|
||
|
|
||
|
while true
|
||
|
do
|
||
|
PID=$(pgrep element)
|
||
|
if [ -n "$PID" ]; then
|
||
|
echo "Killing element (PID: $PID)"
|
||
|
kill -9 $PID
|
||
|
echo "element killed successfully!"
|
||
|
fi
|
||
|
sleep 1
|
||
|
done
|