diff options
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/bin/kill_ghosts.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/bin/kill_ghosts.sh b/usr/local/bin/kill_ghosts.sh new file mode 100755 index 0000000..51ceda4 --- /dev/null +++ b/usr/local/bin/kill_ghosts.sh @@ -0,0 +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` + |