pfsense/usr/local/bin/kill_ghosts.sh
Scott Ullrich 6d0e36962b Use awk
2006-03-25 23:17:13 +00:00

6 lines
167 B
Bash
Executable File

#!/bin/sh
# Kill ghost shells
/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 }'`