Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!mcnc!rti!sunpix!matthew From: matthew@sunpix.UUCP ( Sun Visualization Products) Newsgroups: comp.unix.questions Subject: Re: How to flush output to disk? Keywords: flush buffer disk Message-ID: <1025@friar-taac.UUCP> Date: 6 Dec 89 15:12:49 GMT References: <606@caldwr.UUCP> Reply-To: matthew@friar-taac.UUCP (Matthew Stier - Sun Visualization Products) Distribution: na Organization: Sun Microsystems, RTP, NC Lines: 25 In article <606@caldwr.UUCP> rfinch@caldwr.UUCP (Ralph Finch) writes: > >Is there any way to force the output to be flushed more often, say every 15-30 minutes? > >-- >Ralph Finch The following, untested, script should do it. (I know using 'sync' is a little heavy handed, but it gets the job done.) #! /bin/csh while (1) sleep 900 sync end -- Matthew Lee Stier | Sun Microsystems --- RTP, NC 27709-3447 | "Wisconsin Escapee" uucp: sun!mstier or mcnc!rti!sunpix!matthew | phone: (919) 469-8300 fax: (919) 460-8355 |