home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!doug.cae.wisc.edu!dafnioti
- From: dafnioti@cae.wisc.edu (Petros Dafniotis)
- Subject: Help with UNIX f77 file buffer system
- Organization: U of Wisconsin-Madison College of Engineering
- Date: 25 Jan 93 09:19:37 CST
- Message-ID: <1993Jan25.091937.5738@doug.cae.wisc.edu>
- Summary: Need to flush buffer after each write statement
- Lines: 22
-
- Hello netters,
-
- I know very little about UNIX (in fact I am using VMS for almost 9yrs now).
- A friend of mine had the following problem:
- "His program (all written in FORTRAN by 1-2 people years ago) takes quite
- some time to finish. He is writing info produced at
- run time to 2-3 output files. However, 90% of the runs are proved to be
- useless quite soon; so he uses CTRL-C to abort execution. But then he finds
- no info in the output files. I am guessing that the UNIX file buffer system
- still keeps these numbers in the buffer and what he needs is to flush the
- buffers after each single write. Could someone tell me how can this be
- accomplished in UNIX? (he is using HP-RISC and SUN SPARC-I workstations)."
-
- I would appreciate any help/comments (replies either by e-mail or in the
- news are fine). Thank you,
-
- Petros Dafniotis
- Chem Engr Dept, UW-Madison
- e-mail: dafnioti@cae.wisc.edu
-
- PS: I managed to do that by using really a C function to do all open/fprintf/
- fflush/close commands. But I would prefer a FORTRAN way (if possible).
-