Wednesday, April 23, 2008

A Simple Periodical File Content Recorder

At work, I often want to record content of some special files of operating system (e.g., '/proc/stat') without calling system provided utilities such as 'sar' because they often cook information too much.

Of course, it's easy doing so by writing a simple shell script which calls 'cat', 'date', etc.
But, under high loaded situations, shell scripts are often delayed, and I wanted to do so as atomic as I can.

Thus, I wrote a small stupid program again. :o

It's available here at this moment and will be moved to this sourceforge project soon.

Hey Mori-san, you can replace your(?) /proc/meminfo and /proc/vmstat sampler by this small utility, 'pfr'. :)

No comments: