04-01-2009
Post the output of your prstat command and the desired output within code tags (select the text with your mouse and press the # above the edit box).
Regards
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi,
I have this script which gives me the result...
#! /usr/bin/sh
set -x
cd /home/managar
a=1
while true
do
if
then
echo " File log.txt exists in this directory "
exit 0
fi
echo " File has not arrived yes..."
sleep 3
let a=a+1
if
then (1 Reply)
Discussion started by: mgirinath
1 Replies
2. AIX
Hi ,
I am working on AIX 5.3 server.I have small program which stores the from database to a particaular shared memory.But while retreiving the valus from the same shared memory, i am getting wrong values.
Please help..... (1 Reply)
Discussion started by: ajaysahoo
1 Replies
3. Shell Programming and Scripting
Hi all,
I have a problem with sort command.
i have a file which looks like this:
"file1
1073 java/4
1073 java/180
1073 java/170
1073 java/176
1073 java/167
1073 java/40
1073 java/33
1073 java/136
28988 java/76
28988 java/73
28988 java/48
28988 java/26"
and i want to sort... (8 Replies)
Discussion started by: usha rao
8 Replies
4. Shell Programming and Scripting
Hi All,
i have a file which have many fields delimited by ,(comma)
now i have to show only few fields and not all.
the sample text file looks like this:
TYPE=SERVICEEVENT, TIMESTAMP=05/06/2009 11:01:40 PM, HOST=sppwa634, APPLICATION=ASComp, FUNCTION=LimitsService, SOU... (8 Replies)
Discussion started by: usha rao
8 Replies
5. Emergency UNIX and Linux Support
i have a file which gets appended with 9 records daily and the file keeps growing from then...i use to store the previous day files count in a variable called oldfilecount and current files count as newfilecount.my requirement is that i need to start processing only the new records from the... (3 Replies)
Discussion started by: ganesh_248
3 Replies
6. UNIX for Advanced & Expert Users
Hello,
I'm having a problem with xbindkeys giving the wrong mapping information, hence I can't get it work at all when trying new mappings from this machine.
From another computer, I have some definitions for xbindkeys (made with xbindkeys-config). These key codes work correctly on this... (0 Replies)
Discussion started by: Narnie
0 Replies
7. Shell Programming and Scripting
I am trying to run following script in ksh on darwin 11.4.2:
freeSpace=2469606195
spaceNeeded=200
] && echo "no space" || echo "space available"
] && echo "no space" || echo "space available"
"-lt" is giving wrong answer as "no space" Whereas '<' works fine. When I change the freespace... (4 Replies)
Discussion started by: sabitha
4 Replies
8. Shell Programming and Scripting
Hi All,
I am trying to run a script which will search for 2 strings(stopped,started) in a text file and echo an output depending on below condition
-bash-3.2$ cat trial1.txt
v
ggg
f
-bash-3.2$ cat trial1.sh
VAR9=` grep 'stopped' /tmp/trial1.txt`
VAR10=` grep 'started'... (4 Replies)
Discussion started by: srkmish
4 Replies
9. UNIX for Dummies Questions & Answers
I am seeing a scenario where in if the TIMEZONE environment variable value is set to nothing i.e. putenv "TIMEZONE=" the hardware clock is +1 to software clock.Pasted below the results displayed:
-> envShow
(global environment)
0: TSC_TIME_FROM_RESET=420150.971529 seconds
1:... (0 Replies)
Discussion started by: snehavb
0 Replies
10. Shell Programming and Scripting
The below code usually works when the value for the COLUMN variable is numerical. but im in a situation where the number of fields in a file is not definitive. it changes.
but what is static is that the value i want to retrieve from the log is 3 fields from the last field. which is what i... (9 Replies)
Discussion started by: SkySmart
9 Replies
LEARN ABOUT OSX
topsysproc
topsysproc(1m) USER COMMANDS topsysproc(1m)
NAME
topsysproc - top syscalls by process name. Uses DTrace.
SYNOPSIS
topsysproc [-Cs] [interval [count]]
DESCRIPTION
This program continually prints a report of the number of system calls by process name, and refreshes the display every 1 second or as
specified at the command line. Similar data can be fetched with "prstat -m".
Since this uses DTrace, only users with root privileges can run this command.
OPTIONS
-C don't clear the screen
-s print per second values
EXAMPLES
Default output, 1 second updates,
# topsysproc
Print every 5 seconds,
# topsysproc 5
Print a scrolling output,
# topsysproc -C
FIELDS
load avg
load averages, see uptime(1)
syscalls
total syscalls in this interval
syscalls/s
syscalls per second
PROCESS
process name
COUNT total syscalls in this interval
COUNT/s
syscalls per second
NOTES
There may be several PIDs with the same process name.
DOCUMENTATION
See the DTraceToolkit for further documentation under the Docs directory. The DTraceToolkit docs may include full worked examples with ver-
bose descriptions explaining the output.
EXIT
topsysproc will run until Ctrl-C is hit.
AUTHOR
Brendan Gregg [Sydney, Australia]
SEE ALSO
dtrace(1M), prstat(1M)
version 0.90 Jun 13, 2005 topsysproc(1m)