diff options
Diffstat (limited to 'usr/local/bin')
-rwxr-xr-x | usr/local/bin/kill_ghosts.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/bin/kill_ghosts.sh b/usr/local/bin/kill_ghosts.sh index 51ceda4..5b484ac 100755 --- a/usr/local/bin/kill_ghosts.sh +++ b/usr/local/bin/kill_ghosts.sh @@ -1,5 +1,5 @@ #!/bin/sh # Kill ghost shells -/bin/kill -9 `/bin/ps awux | grep "(sh)" | /usr/bin/grep -v grep | /usr/bin/cut -d" " -f5` +/bin/kill -9 `/bin/ps awux | grep "(sh)" | /usr/bin/grep -v grep | ps awux | grep "(sh)" | grep -v grep | /usr/bin/awk '{ print $2 }'` |