- #!/bin/sh
- if [ $# -lt 1 ];then
- echo "find dcrate";
- while [ true ]
- do
- echo "----------------------------------------------------------------------"
- ps -e -o pid,vsz,ruser,etime,args |grep "dcup"|grep -v grep
- sleep 2
- done
- fi;
- while [ true ]
- do
- echo "----------------------------------------------------------------------"
- ps -e -o pid,vsz,ruser,etime,args |grep $1 |grep $2|grep -v grep| grep -v watchmem
- sleep 1
- done
- #该片段来自于http://www.codesnippet.cn/detail/28112012699.html
来源: http://www.codesnippet.cn/detail/28112012699.html