Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We have applications that integrates to other applications through files exchanging. We needed to be able to be notified on the following situations:

  • Files are accumulating on a certain folder, reaching a defined number of accumulated files;

  • A file is present on a folder without being taken by the app for more than a specified number of minutes;

  • A folder has been empty with no file movement for more than a specified number of minutes;

Is there any tool for Windows that would allow me to set e-mail alerts upon those events? Preferrably a free one :)

I believe this might be a stupid question, but I swear I tried to google it for two days and I came up only to the wrong tools, or tools too difficult to learn.

Thanks a lot in advance.

Cheers,

Jonathas Carrijo

share|improve this question

1 Answer 1

up vote 2 down vote accepted

On Linux you can use inotify and dnotify to monitor the folders and have a script that is doing what you need. Take a look on incrond too.

On Windows you could write a powershell script and use FileSystemWatcher Class.

See also: http://stackoverflow.com/questions/3517460/is-there-anything-like-inotify-on-windows

share|improve this answer
    
Thanks, Mr Vutcovici. Actually, I fogot to say that our servers run on Windows. –  Jonathas Carrijo Oct 31 '12 at 17:48
    
The post you mentioned referenced a Java API jnotify.sourceforge.net which seems a promising choice for our needs. –  Jonathas Carrijo Nov 1 '12 at 12:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.