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!
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!
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
This basically means, each time a change is made to the file c:\tmp\file.txt, run notepad.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
There are currently 1 users browsing this thread. (0 members and 1 guests)