![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Change Directory | vskr72 | UNIX for Dummies Questions & Answers | 2 | 05-25-2008 11:50 PM |
| Change Directory via a script? | George Borrmann | Shell Programming and Scripting | 3 | 10-09-2006 05:13 PM |
| To simultaneously update password change in two server at a time | s_chandrakar | Shell Programming and Scripting | 0 | 11-07-2005 07:25 AM |
| change directory | mkan | Shell Programming and Scripting | 2 | 02-26-2005 01:55 PM |
| change directory | vadivel | Shell Programming and Scripting | 1 | 06-10-2002 07:12 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
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.
|
||||
| Google The UNIX and Linux Forums |