The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
disk and memory monitoring problem uiqbal Filesystems, Disks and Memory 2 07-13-2008 04:54 AM
Ignoring already copied files nvandyke UNIX for Dummies Questions & Answers 0 04-30-2008 01:39 PM
Disk Space Monitoring Script sriram003 Shell Programming and Scripting 8 08-23-2007 08:00 AM
Script that can Copy a Range of files from Tape to Hard disk msjazzie Shell Programming and Scripting 0 08-13-2007 12:47 PM
RAM, Hard Disk ramaraju UNIX for Dummies Questions & Answers 2 03-01-2005 04:35 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-09-2006
Registered User
 

Join Date: Feb 2006
Posts: 1
Question 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...
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-15-2006
andryk's Avatar
Registered User
 

Join Date: Sep 2003
Posts: 448
Why would you want that
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 )
Reply With Quote
  #3 (permalink)  
Old 02-15-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,867
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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0