How to flush output to disk?

Sun Visualization Products matthew at sunpix.UUCP
Thu Dec 7 02:12:49 AEST 1989


In article <606 at caldwr.UUCP> rfinch at 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    |



More information about the Comp.unix.questions mailing list