diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-03-25 23:17:13 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-03-25 23:17:13 +0000 |
commit | 6d0e36962bcce42b7c0458b16e3e8a42278db477 (patch) | |
tree | 5d626b27c9a0ecea2e64f019836bc0a006bafeac /usr | |
parent | d77a09a475e2d78b8ffc4aa276aa5c91f66de5c5 (diff) | |
download | pfsense-6d0e36962bcce42b7c0458b16e3e8a42278db477.zip pfsense-6d0e36962bcce42b7c0458b16e3e8a42278db477.tar.gz |
Use awk
Diffstat (limited to 'usr')
-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 }'` |