shell 检查自身是否已经在运行
#!/bin/bash
runCount=ps -ef|grep $0 | grep -v grep -c
if [ $runCount -gt 2 ]
then
echo -e ${0}" is running, pro_Counts:${runCount}"
fi