ps -eo pid,args | grep -w "$prog_name" | grep -v 'grep' | grep -v 'ps -eo pid,args' | awk '{print $1}'
ps -ef|grep %s|grep "$prog_name"|awk '{print $2}'
ps -eo pid,args | grep -w "$prog_name" | grep -v 'grep' | grep -v 'ps -eo pid,args' | awk '{print $1}'
ps -ef|grep %s|grep "$prog_name"|awk '{print $2}'