On Sat, 2 Jul 2005, Graham Foster wrote:

> 02/07/2005 12:58:11
> "Ara.T.Howard" <Ara.T.Howard / noaa.gov> wrote in message
>
>  http://codeforpeople.com/lib/ruby/dirwatch/
>  http://raa.ruby-lang.org/project/dirwatch/
> To pick up an earlier thread - "will it run on Windows?" - I guess
> the answer is "no" as the startup process seems to require shell
> script? (i.e. Unix only). I've no clue about Unix.. how can I at
> least start it under Windows?

yeah... i lost (accidentally deleted) the email from you.. sorry.  the
start-up process does not require a shell script - it's all one ruby program.

in any case there are a few things that would make it tough to run on windows.

   * posixlocking - windows doesn't support it.  you can fix this by making a
     posixlock.rb file that has this in it

       class File; alias posixlock flock; end

   * running as a daemon requires a fork.  you don't have to do this though.

if you do the posixlock thing you could probably then do

   ~ > dirwatch directory/ create
   ~ > dirwatch directory/ watch

and see what happens.  if that works there is a good chance you could use it
under windows.  i don't know how to run a service under windows but that's
what you'd want to do.  try the posixlock thing, install all the depends
(included in the tar ball) and see where you can get.  there's nothing about
it that requires windows it's just that i don't have a windows machine at home
or anywhere at work - just thousands on linux boxes ;-)

-a
-- 
===============================================================================
| email :: ara [dot] t [dot] howard [at] noaa [dot] gov
| phone :: 303.497.6469
| My religion is very simple.  My religion is kindness.
| --Tenzin Gyatso
===============================================================================