From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: Ralph Corderoy Message-ID: <9kcit1$s1s$1@inputplus.demon.co.uk> References: <393106249@snellwilcox.com> Subject: Re: Re[2]: [9fans] how people learn things (was architectures) Date: Fri, 3 Aug 2001 09:04:52 +0000 Topicbox-Message-UUID: d8a412da-eac9-11e9-9e20-41e7f4b1d025 Hi Steve, > > This is effectively what I've done in the past on Unix. Either > > instruct your version of vi to execute a command on every write of > > the file or have a script watching the file which does `groff ... > > >x.ps'. > > Wasn't this in Kernighan and Pike (The Unix Programming Enviroment) - > waitfile.c I don't have it to hand, but I'am pretty sure its there. I've just looked; you're right. watchfile, exercises 7-12 and 7-17, sounds like it does this. > > gv, a GhostScript viewer, already has an option to refresh when the > > PostScript file changes. This has the advantage that you remain at > > the bottom of page 5 rather than a new window opening on page 1. This is the particularly handy bit though. Ralph.