Results 1 to 2 of 2

Thread: Monitor file changes

  1. #1
    Funking Prink! Raz316's Avatar
    Join Date
    Jul 2003
    Location
    Deal, Kent, UK
    Posts
    2,978
    Thanks
    130
    Thanked
    62 times in 52 posts

    Monitor file changes

    I would like to run a command when a file changes.

    e.g.

    When log.txt changes, run the command "c:\some\app.exe -some thing"

    anyone know how to do this easily in windows XP or Cygwin?

    Ta!

  2. #2
    Funking Prink! Raz316's Avatar
    Join Date
    Jul 2003
    Location
    Deal, Kent, UK
    Posts
    2,978
    Thanks
    130
    Thanked
    62 times in 52 posts

    Re: Monitor file changes

    Ok so I found a solution in the end

    For those interested, I used the app http://sourceforge.net/projects/lofimo/

    and in the cfg file added

    Code:
    Input.alpha.type=File
    Input.alpha.path=/tmp/file.txt
    Input.alpha.initialLines=0
    Input.alpha.filters=alpha
    Filter.alpha.type=String
    Filter.alpha.string=.*
    Filter.alpha.execute=c:\\windows\\notepad.exe
    This basically means, each time a change is made to the file c:\tmp\file.txt, run notepad.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •