# \[ANN\] dirwatch-0.9.0

**URL:** <https://rubytalk.org/t/ann-dirwatch-0-9-0/19302>\
**Category:** ruby-talk\
**Created:** [1 July 2005 23:36 UTC](https://rubytalk.org/t/ann-dirwatch-0-9-0/19302 "2005-07-01T23:36:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ara.T.Howard6](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Ara.T.Howard6](https://rubytalk.org/u/Ara.T.Howard6)\
**Post date:** [1 July 2005 23:36 UTC](https://rubytalk.org/t/ann-dirwatch-0-9-0/19302/1 "2005-07-01T23:36:48Z")

</div>



---

<div class="post-metadata">

**Author:** ![James\_Britt4](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@James\_Britt4](https://rubytalk.org/u/James_Britt4)\
**Post date:** [2 July 2005 00:14 UTC](https://rubytalk.org/t/ann-dirwatch-0-9-0/19302/2 "2005-07-02T00:14:59Z")

</div>

Ara.T.Howard wrote:

> ===============================================================================
> 
> # URLS
> 
> &nbsp;&nbsp;[http://codeforpeople.com/lib/ruby/dirwatch/](http://codeforpeople.com/lib/ruby/dirwatch/)  
> &nbsp;&nbsp;[http://raa.ruby-lang.org/project/dirwatch/](http://raa.ruby-lang.org/project/dirwatch/)
> 
> ===============================================================================
> 
> # README (also see TUTORIAL below)
> 
> NAME  
> &nbsp;&nbsp;dirwatch v0.9.0

Very, very nice.

Are there any docs for it?

🙂

James

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

---

<div class="post-metadata">

**Author:** ![Graham\_Foster](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@Graham\_Foster](https://rubytalk.org/u/Graham_Foster)\
**Post date:** [2 July 2005 12:20 UTC](https://rubytalk.org/t/ann-dirwatch-0-9-0/19302/3 "2005-07-02T12:20:45Z")

</div>

02/07/2005 12:58:11  
"Ara.T.Howard" \<[Ara.T.Howard@noaa.gov](mailto:Ara.T.Howard@noaa.gov)\> wrote in message

&nbsp;&nbsp;[http://codeforpeople.com/lib/ruby/dirwatch/](http://codeforpeople.com/lib/ruby/dirwatch/)  
&nbsp;&nbsp;[http://raa.ruby-lang.org/project/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

---

<div class="post-metadata">

**Author:** ![Ara.T.Howard6](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Ara.T.Howard6](https://rubytalk.org/u/Ara.T.Howard6)\
**Post date:** [2 July 2005 20:40 UTC](https://rubytalk.org/t/ann-dirwatch-0-9-0/19302/4 "2005-07-02T20:40:43Z")

</div>

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.

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

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;class File; alias posixlock flock; end

&nbsp;&nbsp;&nbsp;\* 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

&nbsp;&nbsp;&nbsp;~ \> dirwatch directory/ create  
&nbsp;&nbsp;&nbsp;~ \> 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

> **···**
>
> 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
> > 
> > [Index of /lib/ruby/dirwatch](http://codeforpeople.com/lib/ruby/dirwatch/)  
> > [http://raa.ruby-lang.org/project/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
> 
> ===============================================================================

---

<div class="post-metadata">

**Author:** ![Patrick\_Hurley1](https://avatars.discourse-cdn.com/v4/letter/p/b77776/32.png) [@Patrick\_Hurley1](https://rubytalk.org/u/Patrick_Hurley1)\
**Post date:** [3 July 2005 02:05 UTC](https://rubytalk.org/t/ann-dirwatch-0-9-0/19302/5 "2005-07-03T02:05:35Z")

</div>

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

pth

---

<div class="post-metadata">

**Author:** ![Graham\_Foster](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@Graham\_Foster](https://rubytalk.org/u/Graham_Foster)\
**Post date:** [3 July 2005 08:05 UTC](https://rubytalk.org/t/ann-dirwatch-0-9-0/19302/6 "2005-07-03T08:05:46Z")

</div>

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/\](http://rubyforge.org/projects/win32utils/%5C)).

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

---

<div class="post-metadata">

**Author:** ![Ara.T.Howard6](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Ara.T.Howard6](https://rubytalk.org/u/Ara.T.Howard6)\
**Post date:** [3 July 2005 12:40 UTC](https://rubytalk.org/t/ann-dirwatch-0-9-0/19302/7 "2005-07-03T12:40:44Z")

</div>

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/\](http://rubyforge.org/projects/win32utils/%5C)).
> > 
> > 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
> 
> ===============================================================================
