Waiting for condor output files

   http://freepan.org/ruby/by-dist/fs-watcher/

check out the testsuite for examples

you would probably use it like:

     watcher = FileSystemWatcher.new("condor_outdir", "*")
     watcher.sleepTime = 1
     watcher.start { |status,file|
       if status == FileSystemWatcher::CREATED then
         puts "#{ file } was created"
       elsif status == FileSystemWatcher::MODIFIED then
         puts "#{ file } was modified"
       elsif status == FileSystemWatcher::DELETED then
         puts "#{ file } was deleted"
       end
     }

cheers.

This is helpfully cool.
Is it possible to run this as a service in windows, Ara?

-a

kind regards -botp

···

Ara.T.Howard [mailto:ahoward@noaa.gov] wrote:

i'm useless with windows... sorry ;-(

the website

   http://www.freepan.org/all/by-dist/fs-watcher/ruby/

says this though

   "simple library for watching events occurring on a file system. You can watch
   entire directories, or individual files. You will be notified of file
   creation, modification, and deletion. This solution is (should be) platform
   independent. You might use this to monitor the config files of your server for
   changes for example."

i seem to remember windows has hooks for this at the filesystem layer or
something though - so maybe it's even __better__ in windows?

cheers.

-a

···

On Wed, 9 Jun 2004, [iso-8859-1] "Peña, Botp" wrote:

Ara.T.Howard [mailto:ahoward@noaa.gov] wrote:

   Amazonギフト券買取は安全?違法ではない?ギフト券買取の際に気を付けたいポイントとリスクについて

check out the testsuite for examples

you would probably use it like:

     watcher = FileSystemWatcher.new("condor_outdir", "*")
     watcher.sleepTime = 1
     watcher.start { |status,file|
       if status == FileSystemWatcher::CREATED then
         puts "#{ file } was created"
       elsif status == FileSystemWatcher::MODIFIED then
         puts "#{ file } was modified"
       elsif status == FileSystemWatcher::DELETED then
         puts "#{ file } was deleted"
       end
     }

cheers.

This is helpfully cool.
Is it possible to run this as a service in windows, Ara?

-a

kind regards -botp

--

EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
PHONE :: 303.497.6469
A flower falls, even though we love it; and a weed grows, even though we do
not love it. --Dogen

===============================================================================