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
Change Directory vskr72 UNIX for Dummies Questions & Answers 2 05-26-2008 03:50 AM
Change Directory via a script? George Borrmann Shell Programming and Scripting 3 10-09-2006 09:13 PM
To simultaneously update password change in two server at a time s_chandrakar Shell Programming and Scripting 0 11-07-2005 10:25 AM
change directory mkan Shell Programming and Scripting 2 02-26-2005 04:55 PM
change directory vadivel Shell Programming and Scripting 1 06-10-2002 11:12 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 09-28-2001
bmsantos bmsantos is offline
Registered User
  
 

Join Date: Sep 2001
Posts: 1
Question auto update on directory change

Hi all!

Recently I've started to develop a small program that needs to
check for the arrival of files in a pre-determined directory.

I could use a timer to check for changes in this directory every n seconds.

Instead, what I'm really looking for is for some kind of notification mechanism from the OS. I want the application to register for notifications from the OS for any changes in the directory the application is "listening" for.

Any ideas how I could implement this?

Thanks in advance, regards,
Bruno
  #2 (permalink)  
Old 09-29-2001
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,821
I suggest you look at opening the approproate directory and use the FD with select. Reading the select man page will help you formulate the strategy and algorithm.
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 11:46 AM.


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