Re: redirecting units 5 and 6 to a file.

From: Richard Maine (nospam_at_see.signature)
Date: 01/30/04


Date: Fri, 30 Jan 2004 10:08:54 -0800

glen herrmannsfeldt <gah@ugcs.caltech.edu> writes:

> If it is being left in the buffer, the traditional answer to
> that was the ENDFILE statement.
>
> Normally the buffer would be flushed when the program ends, but
> I presume the program isn't ending yet, but you need the results
> out.

I had similar thoughts on seeing this, except that CLOSE is more
appropriate than ENDFILE. ENDFILE is rarely useful these days. It
might happen to have the side effect of flushing the buffer (not
guaranteed, but it might), but CLOSE is much more to the point.

Also, buffering mode is something that is often different for disk
files than for standard output. Often, disk files are buffered for
efficiency, while standard output s unbuffered (or anyway, line
buffered) so that you can see output right away. Seems consistent
with what I recall of the reported symptoms. I didn't go back and
reread the original post with this in mind, but at least this sounds
like what I recall of it.

-- 
Richard Maine                       |  Good judgment comes from experience;
email: my first.last at org.domain  |  experience comes from bad judgment.
org: nasa, domain: gov              |        -- Mark Twain


Relevant Pages

  • Retrieving Process output as it is written by the Process applicat
    ... Is there a way to capture the standard output from an application running in ... I would like to retrieve the data realtime, ... not wait for the process to either complete or for the buffer to fill. ...
    (microsoft.public.dotnet.general)
  • Re: runtime.exec Process
    ... > When I was using Runtime.exec(String cmd) to run a unix utility, ... > get its standard output by using Process.getOutputStream, ... > buffer allocated for that process. ...
    (comp.lang.java)
  • large "stdio" read-back buffer handling
    ... I am using wish to run an executable that generates some amount of Tk ... code to be "eval"ed later to display results that that executable has ... generate the standard output. ... Maybe I need to declare that the incoming buffer sizeto bes larger. ...
    (comp.lang.tcl)
  • Re: dump xterm scroll back buffer to file
    ... > the scroll_back buffer of an xterm to STDOUT. ... no (I recall some comments in the code which seem to indicate it was ...
    (comp.os.linux.x)
  • Re: Just out of sheer curiosity.......
    ... As I recall, it lets you copy tricky discs that require you to read and ... buffer an entire track at a time. ... And what software will utilize this extra RAM? ...
    (comp.sys.cbm)