The dtracetoolkit already has what you are looking for. Try opensnoop -f /etc/inet/hosts

http://hub.opensolaris.org/bin/view/Community+Group+dtrace/dtracetoolkit

Dave

On 02/07/11 11:37, G Hazel wrote:
I've got a mystery process writing to my /etc/inet/hosts file. I'd like to find a dtrace script that can monitor the file and do a "ps -ef" or equivalent to capture the process that's writing to the file. I'm a dtrace newbie, and was hoping someone here could point me in the right direction. I've googled it and found some scripts that apply to zfs, this is just ufs.
------------------------------------------------------------------------

_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org


_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to