1748185 회원
4727 온라인
108759 솔루션
새 메시지

ps 옵션

 
이준길
비정기 기여자

ps 옵션

---------------------------------------------------------------

for isrv in CATsrv MDLsrv EQPsrv WIPsrv PRPsrv OPRsrv PCMBXadm name=PCMBXsrv

do

echo "PID\tServer\t\tSize"

kid=`ps -e -o pid,vsz,args|grep ${isrv}|grep -v grep|awk '$2 > 10 {print $1,substr($5,6,9),$2}'`

kill_proc

echo ....................

done

---------------------------------------------------------------

위 스크립트는 SUN solraris에서 사용하던것인데

위 스크립을 HP에서 사용하려고 하는데요



ps 커맨드에서 -o 만들어가면 에라가 나네요

HP에선 어떻게 해야 합니까?

----------------------------------------------------------

ps -e -o pid,vsz,args

ps: 잘못된 선택항목 -- o

usage: ps

----------------------------------------------------------

VSZ - virtual memory size

-o format Print information according to the format

specification given in format. This is fully

described in DISPLAY FORMATS. Multiple -o

options can be specified; the format specifi-

cation will be interpreted as the space-

character-separated concatenation of all the

format option-arguments.

----------------------------------------------------------



몇번해보다 시간이 없어 올립니다.

도와주세요
1 응답 1
이준길
비정기 기여자

ps 옵션

export UNIX95=XPG4

이 환경을 적용하면 됩니다.