From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <162e1f62ec6549989609f2dbcb5b839e.axp-list@archive.invalid> X-Archive-Original-Message-ID: <259f75e2.u10t12e.d5e26-dworz@amazing.ch> Date: Wed, 31 Dec 1997 12:22:02 +0000 (GMT) From: Dave Gilbert Subject: Re: buffer - redirecting output In-Reply-To: On Tue, 30 Dec 1997, Adrian Feiguin wrote: > Hi, I use to follow the evolution of my Fortran programs redirecting the > output. The system does not write the buffer on disk until the amount of > information reaches certain size or at a regular interval, wich looks a > long time for me. i would like to do it anytime. How can I force the > system to write on disk? if I well understand, the update daemon is > started in inittab and it's risponsible of this. I tried with sync and > update but it doesn't do what i am expecting. > Any help? I presume you are running your fortran program in the background or another window something like: bigcalc > log and you want to do tail log somewhere? I fthis is the case your not really interested in when it hits the disc; just when it gets out of your fortran program and into the OS. This is an issue of the output library in the fortran run time system; in C you use something like setbuf (or is it setvbuff) to change the output buffering semantics. If you REALLY are waiting for it to change on the disc then you could try calling 'sync' every so often. (But I can't imagine this is the case) Dave ---------------------------------------------------- Man can not live - Dr. David Alan Gilbert - gro.gilbert @ treblig.org by bread alone. He- ---------------------------------------------------- needs chocolate. - -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com