From 662b8a6a4458c940833f469b54be0069483c3403 Mon Sep 17 00:00:00 2001 From: kneutron <50146127+kneutron@users.noreply.github.com> Date: Fri, 10 Jun 2022 13:45:30 -0500 Subject: [PATCH] Add files via upload --- zombieprocs.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 zombieprocs.sh diff --git a/zombieprocs.sh b/zombieprocs.sh new file mode 100644 index 0000000..ddb121b --- /dev/null +++ b/zombieprocs.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Linux ps +ps ax -o pid,ppid,s,cmd |awk '$3 ~ /Z/' +# ^ Print pid, parent pid, State, commandline and only print if 3rd column matches Z = zombie + +# kill -9 on the PARENT pid, should clear them up