Add kill ghosts script

This commit is contained in:
Scott Ullrich 2006-03-25 22:56:27 +00:00
parent 6359a8974a
commit d77a09a475

5
usr/local/bin/kill_ghosts.sh Executable file
View File

@ -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`