[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

5350.0. "Redirecting PRT: to a File" by VERGA::MACDONALD (Home of Digital Realtime Pubs) Wed Jan 15 1992 13:20

    I have a program that open the PRT: device, sends data to it, closes
    it, then waits for more data to come along before opening the PRT:
    again. I would like to redirect this output directly to a disk file.
    
    I have tried the following:
    
    CMD parallel COLLECT.TXT OPT m
    
    However, that method creates a new file everytime the PRT: device is
    opened. What I end up with is COLLECT.TXT.1, .2, .3 and so on. 
    
    I need to have all the data sent to one file, in other words appended
    to an existing file. Is there a way to do this?
    
    -Paul
     
T.RTitleUserPersonal
Name
DateLines
5350.1pipe ?NOTNEC::MCGHIEThank Heaven for small Murphys !Wed Jan 15 1992 23:488
    Could you redirect it to a pipe and the pipe output into a file ?
    
    A process would have to be emptying the pipe output into the
    file and then you would have to gave some way of stopping it
    when you were all done.
    
    Mike
    	(trying to think U*ix like)
5350.2CMDCOOKIE::WITHERSBob Withers - In search of a quiet momentThu Jan 16 1992 10:176
Starting with the 1.3 release, there was a program called CMD which did just
that - grabbed PRT: output and stuffed it in a file.  Look in the docs for
details.

BobW

5350.3VERGA::MACDONALDHome of Digital Realtime PubsThu Jan 16 1992 13:131
    RE: .2  Please reread the base note!