Hello,

In my last note, I mentioned that 'vim' has a method of saving files which 
defeats a single file monitor. For the curious, here's some extra info about 
what's going on.

My goal was to monitor '/etc/resolv.conf' for changes. Here's a little bit of 
code which monitors '/etc' recursively:

[
  "/etc" t <monitor>
  [ next-change 2array . flush t ] curry
  loop
] with-monitors

After opening 'resolv.conf' in vim, issuing a ':w' command yields the 
following output:

{ "/etc/4913" { +add-file+ } }
{ "/etc/4913" V{ +add-file+ } }
{ "/etc/4913" V{ +modify-file+ } }
{ "/etc/4913" V{ +remove-file+ } }
{ "/etc/resolv.conf" V{ +rename-file-old+ } }
{ "/etc/resolv.conf~" { +add-file+ } }
{ "/etc/resolv.conf~" V{ +rename-file-new+ } }
{ "/etc/resolv.conf" { +add-file+ } }
{ "/etc/resolv.conf" V{ +add-file+ } }
{ "/etc/resolv.conf" V{ +modify-file+ } }
{ "/etc/resolv.conf" V{ +modify-file+ } }
{ "/etc/resolv.conf~" V{ +remove-file+ } }

Ed

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to