Search Results

Search: Posts Made By: ozvena
4,530
Posted By ozvena
Thanks for your help, it works after I did this: ...
Thanks for your help, it works after I did this:


$ od -c A.lst
0000000 S o c k e t \r \n
0000010
$ dos2unix A.lst A.lst
$ od -c A.lst
0000000 S o c k e t \n...
4,530
Posted By ozvena
No, there is not. Even if there is it should work...
No, there is not. Even if there is it should work as Socket has spaces around in B.tmp file:


$ LINE=" Socket "
$ grep -c $LINE B.tmp
$ 3
4,530
Posted By ozvena
grep with variable
Hi, I can't get this script to work (returns 0, should return 3):

$ cat A.lst | \
while read LINE
do
echo "$LINE"
grep -c "$LINE" B.tmp
done> > > > >
Socket
0
$

but in...
10,232
Posted By ozvena
Thnaks for directions! ...
Thnaks for directions!



/usr/src/cmd/sa/sadc.c
* load statistics, summing across CPUs where needed
.
.
.
static int all_stat_load(void)
.
.
* Accumulate cpu ticks for CPU_IDLE,...
10,232
Posted By ozvena
Thank you for your response. Yes, this is...
Thank you for your response.

Yes, this is Sun OS kstat command.

“So how did you figure this much out?” “Were you reading the source code too, or did you have some kstat reference?”

Well,...
10,232
Posted By ozvena
kstat - format of output data?
Hi,

I am looking for a cpu usage data (%usr, %iowait, %idle, %kernel) using kstat. The output of kstat is below. How do I interpret those numeric values? In other words, how do I calculate the...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 05:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy