Question about HP 9000/700 Fortran 77 
Author Message
 Question about HP 9000/700 Fortran 77

Quote:

> Is there a way to make output produced by PRINT or WRITE(*,*) to be
> synchronous (i.e. unbuffered) when it's piped through a filter?

Have you tried the    +ttyunbuf    compiler switch ?
Hoping this helps !

Quote:
> I'd like to use filters such as "asa" and "tee" but the fortran I/O
> library (or somebody else) is buffering the output, so I don't see
> it until the program finishes.

> --
> What fraction of Americans believe   |  Van Snyder


     reply to adress below or remove leading "!"      
+-----------------------------------------------------+

 student at              +----------------------------+
 E N S I C               |  Above  message  reflects  |
 1,rue Grandville BP 451 | nobody's opinions but mine |
 F-54001 NANCY Cedex     +----------------------------+


Sun, 23 Jan 2000 03:00:00 GMT  
 Question about HP 9000/700 Fortran 77

Is there a way to make output produced by PRINT or WRITE(*,*) to be
synchronous (i.e. unbuffered) when it's piped through a filter?

I'd like to use filters such as "asa" and "tee" but the Fortran I/O
library (or somebody else) is buffering the output, so I don't see
it until the program finishes.

--
What fraction of Americans believe   |  Van Snyder



Sun, 23 Jan 2000 03:00:00 GMT  
 Question about HP 9000/700 Fortran 77


Quote:

>Is there a way to make output produced by PRINT or WRITE(*,*) to be
>synchronous (i.e. unbuffered) when it's piped through a filter?

>I'd like to use filters such as "asa" and "tee" but the Fortran I/O
>library (or somebody else) is buffering the output, so I don't see
>it until the program finishes.

>--
>What fraction of Americans believe   |  Van Snyder


Assuming you are using a BSD based version of UNIX f77, you can
call the subroutine flush after each WRITE or PRINT.

If you want to reduce the number of lines you need to change, you
can use the C routine setvbuf.  Use getfilep to get the file pointer
corresponding to the unit number.  Pass that file pointer to a C
routine that calls setvbuf with the appropriate parameters.

                                        Sincerely,
                                        Bob Corbett



Mon, 24 Jan 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Eiffel/S 1.3 available on HP9000/300 and 9000/700

2. HP 700 Fortran compiler(s)?

3. HP - UX Fortran 9000 LaPack

4. help: main fortran calling C++ module on HP 9000 platform

5. HP/9000 Fortran Command Line

6. Logical*1,2,4 in HP Fortran 9000

7. HP Server VS. HP 9000 Series

8. Oberon-System for HP-9000 (HP-UX 8.07)

9. Problems with Alsys Ada + HP 9000/800 + HP-UX 7.0

10. CProlog for a HP 9000 running HP-UX

11. Tk4.b1 on a HP 9000/380, hp-ux 9.03

12. gnat and hp 9000/700 (needport or info please!!)

 

 
Powered by phpBB® Forum Software