I read about "watch" command in the mpx paper (*) and thought
it's interesting.  The paper mentions the commandline:
        watch fig1.pic | pic | troff | proof
and the pipe line runs whenever fig1.pic is modified.
Does anyone have a similar program in his pocket?

(*) hget http://cm.bell-labs.com/cm/cs/doc/83/mpx.ps.gz | gunzip | page


I'm thinking of writing a file server (watchfs) which will serve:
  /n/watch/ctl
  /n/watch/data/a.c
  /n/watch/data/b.c

Whenever a.c and b.c are changed, a text will appear on the ctl file.
Thus, you can do something like:
        % while(){read /n/watch/ctl; mk}

How's this idea?
-- 


Reply via email to