home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!news.claremont.edu!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL
- From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
- Newsgroups: comp.os.vms
- Subject: Re: VAX c
- Date: 26 Dec 1992 07:28:30 GMT
- Organization: HST Wide Field/Planetary Camera
- Lines: 22
- Distribution: world
- Message-ID: <1hh1iuINNfjb@gap.caltech.edu>
- References: <1992Dec24.173709.16437@mailer.cc.fsu.edu>
- Reply-To: carl@SOL1.GPS.CALTECH.EDU
- NNTP-Posting-Host: sol1.gps.caltech.edu
-
- In article <1992Dec24.173709.16437@mailer.cc.fsu.edu>, cliff@evax9.eng.fsu.edu (CLIFF BROWNING) writes:
- >
- >Is there a way to get VAX C to flush the VMS file buffers?
- >
- >I've got a program that reads data in for the tta2: port and then writes it to
- >a file. The problem is that the data doesn't get written to the file until the
- >buffer is full, and that may not happen but once every day or two.
-
- Well, ONE way to do it is to run the program with a DCL procedure as its input
- and the output file as SYS$OUTPUT. What way you could use as the input file:
- $ SET OUTPUT_RATE=0:0:0.01 !'F$VERIFY(0)'
- $ RUN PROGRAM
- Then use the command:
- $ RUN/DETACH/INPUT=your_procedure/OUT=your_log_file SYS$SYSTEM:LOGINOUT
- --------------------------------------------------------------------------------
- Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
-
- Disclaimer: Hey, I understand VAXen and VMS. That's what I get paid for. My
- understanding of astronomy is purely at the amateur level (or below). So
- unless what I'm saying is directly related to VAX/VMS, don't hold me or my
- organization responsible for it. If it IS related to VAX/VMS, you can try to
- hold me responsible for it, but my organization had nothing to do with it.
-