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
-- 
This message posted from opensolaris.org

Reply via email to