June 7, 2010

Dtrace: openfile.d script

Posted in Dtrace at 3:14 pm by alessiodini

Today in my free time i wrote this script.

It can be used in a follow scenario:

“We have the important file /tmp/pippo ( simple example ) that sometimes it is corrupted by some command/process. After a restore we see now that file is corrupted for second time. Who open it?”
( i suggest you to zoom the screenshot for full vision )

In this situation i use openfile.d as follow:

# cat /tmp/pippo

# ./openfile.d

./openfile.d [ -f file ] [-l] -h

-f = file to check
-l = see info about numeric codes

In another window i have launched a couple of commands on file /tmp/pippo !

This script can be downloaded here.
If u have some suggestion or u want help me to make it better… u are welcome 😉



  1. hey whats your myspace page.

    • alessiodini said,

      hi , I don’t have a page on myspace 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: