* Output adding
@ 1997-12-19 19:37 Paul Kitwin
0 siblings, 0 replies; only message in thread
From: Paul Kitwin @ 1997-12-19 19:37 UTC (permalink / raw)
To: tru64-unix-managers
I am trying to create a monitoring script that will keep track of actual
memory use per user.
So far I have
ps -el > /tmp/mem.tmp
MEMM=`grep USER /tmp/mem.tmp | cut -b 45-90 | grep M | cut -b 1-4`
MEMG=`grep USER /tmp/mem.tmp | cut -b 45-90 | grep G | cut -b 1-4`
rm /tmp/mem.tmp
echo $MEMM
echo $MEMG
This gives me 2 strings of numbers. What I want to do next is add these
strings of numbers to get a Mb count and a Gb count. Than multiply the
Gb to convert to Mb than add the two values to see what an individual
user is actually using for memory.
My question is, how to I add the strings of the output of $MEMM and
$MEMG?
TIA
Put down the mouse, and step away from the keyboard. . .
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-12-19 19:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-12-19 19:37 Output adding Paul Kitwin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox