]
cc: [EMAIL PROTECTED]
03/28/02 11:05 Subject: Re: Help in unix script(Document
link: Brian P MacLean)
AM
Hi Ashoke,
I see that you are using NORAD (I am the resident NORAD sales critter ;P).
Can't help you much on the script help, but one thing I can say:
Have you looked at the IAS agent of NORAD (the system monitoring agent)?
This will be able to do all that you want..
Under the standard rules
#!/bin/ksh
MAX=40
top -b -U norad | grep norad | awk '{ print $6, $11 }' | \
while read SIZE COMMAND
do
#echo working with ${SIZE}:${COMMAND}#DEBUG
WORK=${SIZE#*M}
#echo 1-${WORK} #DEBUG
if [[ ${#WORK} -eq 0 ]]
then
WORK=${SIZE%%M}