#!/usr/bin/env sh pid=`ps -ef | grep bill| grep java | awk '{print $2}'` if [ -n "$pid" ]; then echo $pid kill -9 $pid fi