home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / wizards / 3781 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  1.0 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!jvnc.net!rutgers!cmcl2!psinntp!psinntp!commpost!opus!fia!passion!ksingh
  2. From: ksingh@passion.fia.dmg.ml.com (Kunal Singh)
  3. Newsgroups: comp.unix.wizards
  4. Subject: ASYNCHRONOUS FILE PRESENCE NOTIFICATION
  5. Keywords: UNIX FILE
  6. Message-ID: <1992Sep1.142647.9400@fia.dmg.ml.com>
  7. Date: 1 Sep 92 14:26:47 GMT
  8. Sender: ksingh@passion (Kunal Singh)
  9. Organization: Merrill Lynch Debt Markets
  10. Lines: 9
  11. Nntp-Posting-Host: passion
  12.  
  13. I'm trying to write a program which will check a certain directory for incoming files.  I want this program to be interrupt-driven such that as soon as a file is put into this directory, my program is signaled and can process the file.
  14.  
  15. I realize that my program can wake up at fixed intervals and check the directory itself for new files.  But I'm hoping for a more elegant solution.
  16.  
  17. Is there any way for my program to have the UNIX operating system notify me of the creation of a file in my subdirectory ?  
  18.  
  19. Any help would be greatly appreciated.  Thanks.
  20.  
  21. Kunal Singh
  22.