Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rwsnoop(1m) [osx man page]

rwsnoop(1m)							   USER COMMANDS						       rwsnoop(1m)

NAME
rwsnoop - snoop read/write events. Uses DTrace. SYNOPSIS
rwsnoop [-jPtvZ] [-n name] [-p PID] DESCRIPTION
This is measuring reads and writes at the application level. This matches the syscalls read, write, pread and pwrite. Since this uses DTrace, only users with root privileges can run this command. OPTIONS
-j print project ID -P print parent process ID -t print timestamp, us -v print time, string -Z print zone ID -n name process name to track -p PID PID to track EXAMPLES
Default output, # rwsnoop Print zone ID, # rwsnoop -.Monitor processes named "bash", # rwsnoop -n bash FIELDS
TIME timestamp, us TIMESTR time, string ZONE zone ID PROJ project ID UID user ID PID process ID PPID parent process ID CMD command name for the process D direction, Read or Write BYTES total bytes during sample FILE filename, if file based. Reads and writes that are not file based, for example with sockets, will print "<unknown>" as the file- 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
rwsnoop will run forever until Ctrl-C is hit. AUTHOR
Brendan Gregg [Sydney, Australia] SEE ALSO
rwtop(1M), dtrace(1M) version 0.70 Jul 24, 2005 rwsnoop(1m)

Check Out this Related Man Page

kill.d(1m)							   USER COMMANDS							kill.d(1m)

NAME
kill.d - snoop process signals as they occur. Uses DTrace. SYNOPSIS
kill.d DESCRIPTION
kill.d is a simple DTrace program to print details of process signals as they are sent, such as the PID source and destination, signal num- ber and result. This program can be used to determine which process is sending signals to which other process. Since this uses DTrace, only users with root privileges can run this command. EXAMPLES
Default output, print process signals as they are sent. # kill.d FIELDS
FROM source PID COMMAND source command name TO destination PID SIG destination signal ("9" for a kill -9) RESULT result of signal (-1 is for failure) 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
kill.d will run forever until Ctrl-C is hit. AUTHOR
Brendan Gregg [Sydney, Australia] SEE ALSO
dtrace(1M), truss(1) version 0.90 May 14, 2005 kill.d(1m)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Output of ps -ef command

Can someone tell me the meaning of the column 'C' contained in the output of the ps -ef command? UID PID PPID C STIME TTY TIME COMMAND I was once told that if the value was higher then 0 and the process showed to be in a state of sleep when running a top then the command had... (6 Replies)
Discussion started by: dbrundrett
6 Replies

2. Shell Programming and Scripting

Problems with AWK

Hi I'm a newbie to Unix scripting and was having some problems with AWK. I have written this little script that should read a process list and then print out the PID's of the offending processes. Unfortunately it doesn't seem to work! The script is as follows: ps -ef | awk '{if... (10 Replies)
Discussion started by: trainee
10 Replies

3. Shell Programming and Scripting

KILL PID, intern should kill another PID.

Hi All, In my project i have two process runs in the back end. Once i start my project, and execute the command ps, i get below output: PID TTY TIME CMD 9086 pts/1 0:00 ksh 9241 pts/1 0:02 java 9240 pts/1 0:00 shell_script_bg java with 9241 PID is the main... (4 Replies)
Discussion started by: rkrgarlapati
4 Replies

4. Shell Programming and Scripting

diplay user process in separate lines

hi I m trying to display the processes of each user but its coming in one line like george wilkins PID TTY TIME CMD 7661 ? 00:00:01 sshd 7662 pts/6 00:00:00 bash i want the output to be like PID TTY TIME CMD 7661 ? 00:00:01 sshd 7662 pts/6 00:00:00 bash my code is proc=$(users)... (5 Replies)
Discussion started by: mathur
5 Replies

5. Shell Programming and Scripting

Finding PID of a process using variable substituition

Hi All, Am copying mulitple files in a directory in names File0,File1,File2 etc. I need to print separately the PID of these copies using File names. for((i=0;i<5;i++)) do mypid=`ps aux | awk '/File$i/ && !/awk/ { print $2 }'` echo PID is $mypid done It printed nothing. Thinking... (6 Replies)
Discussion started by: amio
6 Replies

6. Shell Programming and Scripting

How to get PID of a backgroung prsc from that process???

It seems obviose, but I surprised to be not able to get it! In bash, expected to get a current process ID by '$$' So, if I ran backgroung any stuff and try from there get that process ID I would expect to have the same number as I have reported on foregroung screen, when I have started that... (9 Replies)
Discussion started by: alex_5161
9 Replies

7. Solaris

Can a batch job truly have a PID of 1?

Is it possible for a process id of 1. Is there anything special about 1 or 8 ? (7 Replies)
Discussion started by: Harleyrci
7 Replies

8. Red Hat

What is a PID number?

What is a PID number? (3 Replies)
Discussion started by: nariangel
3 Replies

9. Programming

Print ancestor list in c (name and PID)

I am trying to write a C program that prints its ancestor name and PID For example: Lets say my program name is prog1 then the output should be prog1 with PID: 2345 bash with PID: 4567 .... init with PID: 1 This is just a scratch work. #include <stdio.h> #include <unistd.h> #include... (5 Replies)
Discussion started by: nimesh
5 Replies

10. Shell Programming and Scripting

Ps - list where UID is numeric or name and for current user

Hi, 'ps -ef' returns output of the following format UID PID PPID C STIME TTY TIME CMD root 17573 1 0 Sep12 tty6 00:00:00 /sbin/mingetty tty6 hpsmh 18150 14864 0 Sep12 ? 00:00:00 /opt/hp/hpsmh/sbin/hpsmhd -DSSL -f /opt/hp/hpsmh/conf/smhpd.conf root ... (3 Replies)
Discussion started by: ysrini
3 Replies

11. Shell Programming and Scripting

Time field showing Zero in ps command output

F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME COMD 401 S catmgr 5748 5742 0 154 20 e0000006d48cd080 133 e0000003fb6e7200 11:22:32 ? 0:00 /opt/ssh/libexec/sftp-server 3401 R catmgr 5742 5631 0 152 20 e0000005f974fa00 750 ... (4 Replies)
Discussion started by: TomG
4 Replies

12. Shell Programming and Scripting

Need generic command to get complete running process details

I am on SunOS and Linux I need generic command to get complete process details from which i will eventually extract socket details (listen address and port) ps -ef | ggrep -i server | ggrep -i mydomaindoes not yield a process that should have both the grep entries along with the listen... (8 Replies)
Discussion started by: mohtashims
8 Replies

13. UNIX for Advanced & Expert Users

GNU = inventions that nobody wants?

Stumbled over this today on GNU/Linux, output from ps -fp : UID PID PPID C STIME TTY TIME CMD root 3516 1 0 2017 ? 00:00:13 syslogd -m 0 UID PID PPID C STIME TTY TIME CMD syslog 2952 1 0 2017 ? 00:02:08 rsyslogdSTIME showing... (8 Replies)
Discussion started by: MadeInGermany
8 Replies

14. AIX

UNIX ksh - To print the PID number and repeat count

This question is asked in an interview today that I have to return output with each PID number and the count of each PID number logged today. Here is the script that I have written. Can you confirm if that would work or not. The interviewer didn't said if my answer is correct or not. Can someone... (5 Replies)
Discussion started by: Subodh Kumar
5 Replies

15. UNIX for Beginners Questions & Answers

Read line and print output

need help to print the below .. Content of file looks like below .. SCHEMA1. TABLE1 SCHEMA2. TABLE2 SCHEMA3. TABLE3 read lines from above file and print o/p as below print output like read 1st line and print SELECT SCHEMA1.TABLE1 print output like read 2st line and print ... (4 Replies)
Discussion started by: rocking77
4 Replies