monitoring files copied onto hard disk

hi...

i need pointers to books/website...

'm trytin to write a daemon that monitors files of particular type(eg. text or pdfs) copied onto the hard disk. the daemon should detect the above n write the file name (along with the absolute path) to a file.

please DO NOT give me the code explicitly...

Why would you want that :rolleyes:
The easiest way i can see is to use LKM and reroute some interesting apis (like write maybe ?)
So that's not really a daemon (userland) you're directly playing with kernel (wonderland :smiley: )

I have to agree with Andryk - it seems to me to be a bit non-sequitur, you seem to want a kind of FindFirstChangeNotification api for UNIX. Some things that make sense in one OS don't translate well to others. IMO.

The only suggestion I have is get a copy of lsof or fuser for your unix system and investigate what was done in there. If you're on a UNIX that supports /proc then you may already have what you need.