Google

kill with grep

Scripts@kill with grep

Contact:[email protected]

#!/bin/sh

# Stop proftpd by killing the process 
echo "Shuting down proftpd"

kill -TERM `ps -ef | grep proftpd | grep -v grep | awk '{print $2}'`

echo "Proftpd shutdown"


Back to the Index