Hi--

You might repost this query on the dtrace discuss list, here:

http://www.opensolaris.org/os/community/dtrace/discussions/

I don't know if any dtrace experts hang out on the docs list.

Cindy

debabrata das wrote:
> Hi all,
> 
> I am new in dtrace. But I have urgent requirement. I would like to know a 
> name of program which is responsible for updating a file. I have written the 
> small following program :
> 
> #!/usr/sbin/dtrace -s
> 
> syscall::open*:entry
> /pid == $1/
> {
>        printf("%s %s %d", execname, copyinstr(arg0), pid);
> }
> 
> Now if I ruun this then I get following output :
> 
> -bash-3.00$ ./text.d | grep deba
> dtrace: script './text.d' matched 2 probes
>   8    402                     open64:entry bash /tmp/deba.txt 18786
> 
> Now I want to know which script is updating this file. I would like to the 
> see the output of "ptree 18786". I am not sure how to this structure of ptree 
> or the name of the script.
> 
> Thanks
> Deba

Reply via email to