> 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} > i dont think it will work.
let us say i just saved an intermediate version of a.c while doing a bigger change. then the above script will kick mk process that is neither needed nor useful. the same is the case when i save a.c but i need to change 10 other files to reflect the change in all relevant files. thanks dharani
