From d77a09a475e2d78b8ffc4aa276aa5c91f66de5c5 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 25 Mar 2006 22:56:27 +0000 Subject: Add kill ghosts script --- usr/local/bin/kill_ghosts.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 usr/local/bin/kill_ghosts.sh (limited to 'usr/local/bin') 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` + -- cgit v1.1