[dtrace-discuss] Re: Re: Re: How to get absolute path?
Parthasarathy J
sarathy_groups at yahoo.com
Mon Dec 11 22:31:06 PST 2006
Dear Jhaslam,
Thanks a lot for your mail.
The script that you gave :
#!/usr/sbin/dtrace -s
syscall::open:return
/arg1 >= 0/
{
trace(fds[arg1].fi_pathname);
}
worked fine for open entry, when I tried the same for write & unlink entry, its not working.
One more thing is , I am just interested about my home directory alone( needs some substring comparison, I believe, but I didn't suceed) , it should not give me syscall entries
namely open,create,write,unlink (abs. path) for other directories.
Please kindly help me regarding the same with a suitable script that gives the absolute path for syscall::open/create/write/unlink entries in /home directory alone.
Thanks,
Partha
This message posted from opensolaris.org
More information about the dtrace-discuss
mailing list