any "directory change notification" command line tools?

Discussion in 'Scripting' started by Tomasz Chmielewski, Apr 5, 2009.

  1. I'm looking for a tool which will monitor changes in a given directory
    (i.e. new file creation).

    When a new file is created in the directory, I would like to run my own
    script (obviously, with the name of the file as one of its parameters).

    Tool has to be able to work from command line (i.e. be usable without
    interaction, in a script).

    I think I'm looking for a tool supporting "directory change
    notification", for which I found some info on MSDN[1], but it is very
    low level info requiring programming.

    If someone is familiar with Linux - it has a subsystem called "inotify";
    if I used "inotifywait" program to trace changes to /tmp/1/ directory
    and created "some_file" file, I would see such output:

    /tmp/1/ CREATE some_file
    /tmp/1/ OPEN some_file
    /tmp/1/ MODIFY some_file
    /tmp/1/ MODIFY some_file
    /tmp/1/ MODIFY some_file
    /tmp/1/ CLOSE_WRITE,CLOSE some_file

    Is anyone familiar with a similar tool which could be used with Windows

    Tomasz Chmielewski, Apr 5, 2009
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.