Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* buffer - redirecting output
@ 1997-12-30 19:48 Adrian Feiguin
  0 siblings, 0 replies; 3+ messages in thread
From: Adrian Feiguin @ 1997-12-30 19:48 UTC (permalink / raw)


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?

Thank you,

<ADRIAN> 

-- 
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: buffer - redirecting output
       [not found] <Pine.LNX.3.96.971230133335.25382C-100000@ifir.ifir.edu.ar>
@ 1997-12-31 12:22 ` Dave Gilbert
  0 siblings, 0 replies; 3+ messages in thread
From: Dave Gilbert @ 1997-12-31 12:22 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: buffer - redirecting output
@ 1998-01-03  7:37 Craig Burley
  0 siblings, 0 replies; 3+ messages in thread
From: Craig Burley @ 1998-01-03  7:37 UTC (permalink / raw)


>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.

Have you looked into whether your Fortran compiler supports
"CALL FLUSH(unit)"?  g77 does, for example.  Anyplace in your
code where you want to make sure the output is flushed, in a
"semi-portable" way, insert this call, with unit being the output
unit number.  (Note that I think g77's implementation of CALL
FLUSH() happens to always flush *all* units regardless of number,
but that this is probably going to be changed someday, so it is
best to explicitly flush just the units you care about...but read
the docs to be sure.)

-- 

"Practice random senselessness and act kind of beautiful."
James Craig Burley, Software Craftsperson    burley@gnu.org

-- 
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-01-03  7:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-01-03  7:37 buffer - redirecting output Craig Burley
     [not found] <Pine.LNX.3.96.971230133335.25382C-100000@ifir.ifir.edu.ar>
1997-12-31 12:22 ` Dave Gilbert
  -- strict thread matches above, loose matches on Subject: below --
1997-12-30 19:48 Adrian Feiguin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox