#!/bin/bash # get size of java process PID PName=$1 #echo $PName if [ "$PName" != "" ];then pid=`ps aux | grep $PName | grep -v grep | grep -v zabbix |awk '{print $2}'` echo $pid fi
#!/bin/bash # get size of java process PID PName=$1 #echo $PName if [ "$PName" != "" ];then pid=`ps aux | grep $PName | grep -v grep | grep -v zabbix |awk '{print $2}'` echo $pid fi