From: "Ara.T.Howard" Date: 2004-06-09T11:03:37+09:00 Subject: Re: Waiting for condor output files --8323328-1266487174-1086746244=:1556 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1266487174-1086746244=:1556" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-1266487174-1086746244=:1556 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Wed, 9 Jun 2004, [iso-8859-1] "Pe=F1a, Botp" wrote: > Ara.T.Howard [mailto:ahoward@noaa.gov] wrote: >> http://freepan.org/ruby/by-dist/fs-watcher/ >> >> check out the testsuite for examples >> >> you would probably use it like: >> >> >> watcher =3D FileSystemWatcher.new("condor_outdir", "*") >> watcher.sleepTime =3D 1 >> watcher.start { |status,file| >> if status =3D=3D FileSystemWatcher::CREATED then >> puts "#{ file } was created" >> elsif status =3D=3D FileSystemWatcher::MODIFIED then >> puts "#{ file } was modified" >> elsif status =3D=3D 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 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) platf= orm independent. You might use this to monitor the config files of your serv= er 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 -- =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D | 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D --8323328-1266487174-1086746244=:1556-- --8323328-1266487174-1086746244=:1556--