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 08:54 AM
Ignoring already copied files nvandyke UNIX for Dummies Questions & Answers 0 04-30-2008 05:39 PM
Disk Space Monitoring Script sriram003 Shell Programming and Scripting 8 08-23-2007 12:00 PM
Script that can Copy a Range of files from Tape to Hard disk msjazzie Shell Programming and Scripting 0 08-13-2007 04:47 PM
RAM, Hard Disk ramaraju UNIX for Dummies Questions & Answers 2 03-01-2005 08:35 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-09-2006
abhi_abhijith abhi_abhijith is offline
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...
  #2 (permalink)  
Old 02-15-2006
andryk's Avatar
andryk andryk is offline Forum Advisor  
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 )
  #3 (permalink)  
Old 02-15-2006
jim mcnamara jim mcnamara is online now Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,802
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:18 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0