Files
Farhad Shahbazi acc8f15e9e initial commit
2016-03-05 16:30:21 +01:00

7 lines
193 B
Bash
Executable File

#!/bin/sh
# zombies - list all zombies and their parents to kill
ps f -eo state,pid,ppid,comm | awk '
{ cmds[$2] = $NF }
/^Z/ { print $(NF-1) "/" $2 " zombie child of " cmds[$3] "/" $3 }'