LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 05-13-2004, 11:30 AM   #1
marri
Member
 
Registered: May 2004
Posts: 38

Rep: Reputation: 15
Get directory stats when a file has been modified?


I am currently trying to poll for changes in a directory, only by looking at the directory status (modification time). I have many files in many directories and I need to know what file has been changed and in what directory, without scanning all the directories.
Is there anything in the directory file descriptor that encompasses this situation.

regards
emb.
 
Old 05-13-2004, 11:46 AM   #2
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
This may be able to do what you want... I'm sure there are many others out there or you could write your own daemon to watch a folder/folders.
 
Old 05-13-2004, 09:44 PM   #3
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 58
If you want to re-invent the wheel, read 'man 2 stat'.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tail Last Modified File in a Directory tyoungblood Linux - Software 3 08-12-2005 09:42 AM
equivalent of windows directory properties providing basic stats on contents alpha21 Linux - Newbie 9 05-01-2005 09:09 AM
triggering bash script if directory modified cbb Linux - Software 1 10-23-2004 08:52 AM
monitoring directory to get the modified file names appas Programming 1 09-06-2004 05:56 AM
vi won't save modified file. mimsmall Linux - General 1 03-26-2004 11:04 PM


All times are GMT -5. The time now is 06:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration