summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-25 23:17:13 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-25 23:17:13 +0000
commit6d0e36962bcce42b7c0458b16e3e8a42278db477 (patch)
tree5d626b27c9a0ecea2e64f019836bc0a006bafeac /usr
parentd77a09a475e2d78b8ffc4aa276aa5c91f66de5c5 (diff)
downloadpfsense-6d0e36962bcce42b7c0458b16e3e8a42278db477.zip
pfsense-6d0e36962bcce42b7c0458b16e3e8a42278db477.tar.gz
Use awk
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/bin/kill_ghosts.sh2
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 }'`
OpenPOWER on IntegriCloud