[ANN] dirwatch-0.9.0

Ara.T.Howard wrote:

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

URLS

  http://codeforpeople.com/lib/ruby/dirwatch/
  http://raa.ruby-lang.org/project/dirwatch/

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

README (also see TUTORIAL below)

NAME
  dirwatch v0.9.0

Very, very nice.

Are there any docs for it?

:slight_smile:

James

···

--

http://www.ruby-doc.org - The Ruby Documentation Site
http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys

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?

Graham

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 :wink:

-a

···

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?

--

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

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

You might want to check out change notify from Win32 Util stuff at
ruby forge (http://rubyforge.org/projects/win32utils/).

pth

03/07/2005 08:34:16
Patrick Hurley <phurley@gmail.com> wrote in message
<554ac39c05070219057ec18b2c@mail.gmail.com>

You might want to check out change notify from Win32 Util stuff at
ruby forge (http://rubyforge.org/projects/win32utils/\).

WOW - a complete treasure trove of useful functionality that I didn't
know existed. The ChangeNotify seems to be deprecated and
ChangeJournal its replacement. (I hope that tChangeJournal doesn't
require you to watch an entire drive).
These methods seem very much smaller and less complex than dirwatch,
as they don't appear to use a database behind them. (I assume they
trust the filesystem information and events?) Anyone any experience
with either toolset?
Thx
Graham

dirwatch basically emulates (and adds) to this functionality, which is
built-in to the windows file systems. the normal unix file systems does not
provide hooks to do this sort of thing - that's why i wrote dirwatch? of
course a big difference is that dirwatch is durable across machine reboots.

cheers.

-a

···

On Sun, 3 Jul 2005, Graham Foster wrote:

03/07/2005 08:34:16
Patrick Hurley <phurley@gmail.com> wrote in message
<554ac39c05070219057ec18b2c@mail.gmail.com>

You might want to check out change notify from Win32 Util stuff at
ruby forge (http://rubyforge.org/projects/win32utils/\).

WOW - a complete treasure trove of useful functionality that I didn't
know existed. The ChangeNotify seems to be deprecated and
ChangeJournal its replacement. (I hope that tChangeJournal doesn't
require you to watch an entire drive).
These methods seem very much smaller and less complex than dirwatch,
as they don't appear to use a database behind them. (I assume they
trust the filesystem information and events?) Anyone any experience
with either toolset?
Thx
Graham

--

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

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