summaryrefslogtreecommitdiffstats
path: root/usr/local/bin/kill_ghosts.sh
blob: 5b484acefdc331c0bacf9aaf21cab022b5f23c39 (plain)
1
2
3
4
5
#!/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 }'`

OpenPOWER on IntegriCloud