[comp.os.cpm] redirection of output

CCCRAIG@UMCVMB.MISSOURI.EDU ("Craig Pepmiller") (01/03/89)

My father works on a Kaypro II and a Kaypro 10.  He is trying to redirect
output form the serial port (printer) to a disk file.  Is there a CPM
instruction to do this?  Maybe a small utility?

lee@uhccux.uhcc.hawaii.edu (Greg Lee) (01/04/89)

From article <8901031516.AA28528@ucbvax.Berkeley.EDU>, by CCCRAIG@UMCVMB.MISSOURI.EDU ("Craig Pepmiller"):
" My father works on a Kaypro II and a Kaypro 10.  He is trying to redirect
" output form the serial port (printer) to a disk file.  Is there a CPM
" instruction to do this?  Maybe a small utility?

PIP

wilker@batcomputer.tn.cornell.edu (Clarence W. Wilkerson Jr.) (01/04/89)

I assume the question was to redirect output from an existing
application program for which no source code was available, to
a disk file. If you wanted to capture incomming stuff off the 
serial ports, KERMIT might be more convenient than PIP.
CP/M does not treat IO devices the same as files like
UNIX, so one can not easily ( with out hacking your bios,
) capture IO into files. I can imagine a small utility
sitting under CCP capturing calls to RDR or whatever,
and writting a log file. However, many CP/M programs using serial
ports go directly to the hardware, so there is still a
problem. Can you be more specific as to the capability needed?

dg@lakart.UUCP (David Goodenough) (01/04/89)

From article <2924@uhccux.uhcc.hawaii.edu>, by lee@uhccux.uhcc.hawaii.edu (Greg Lee):
> From article <8901031516.AA28528@ucbvax.Berkeley.EDU>, by CCCRAIG@UMCVMB.MISSOURI.EDU ("Craig Pepmiller"):
> " My father works on a Kaypro II and a Kaypro 10.  He is trying to redirect
> " output form the serial port (printer) to a disk file.  Is there a CPM
> " instruction to do this?  Maybe a small utility?
> 
> PIP

Not quite. I think what is required is PIP FILE.XYZ = LST: I have a TSR
that catches console output, and it should be trivial to modify it to
catch LST: output.
-- 
	dg@lakart.UUCP - David Goodenough		+---+
							| +-+-+
	....... !harvard!xait!lakart!dg			+-+-+ |
AKA:	dg%lakart.uucp@xait.xerox.com		  	  +---+

bill@sigma.UUCP (William Swan) (01/05/89)

>" My father works on a Kaypro II and a Kaypro 10.  He is trying to redirect
>" output form the serial port (printer) to a disk file.  Is there a CPM
>" instruction to do this?  Maybe a small utility?
>
>PIP

Actually, no. What is needed is some form of i/o capture utility. I believe
there is one somewher in the CP/MUG archives that could be modified to do
this (called, I believe, IOCAP), but I don't know of a utility to do this.

PIP will copy a file to the printer port, but it won't divert printer output.

-- 
William Swan	..!tikal.Teltone.COM!sigma!bill	

lee@uhccux.uhcc.hawaii.edu (Greg Lee) (01/05/89)

From article <1996@sigma.UUCP>, by bill@sigma.UUCP (William Swan):
" >" My father works on a Kaypro II and a Kaypro 10.  He is trying to redirect
" >" output form the serial port (printer) to a disk file.  Is there a CPM
" >" instruction to do this?  Maybe a small utility?
" >
" >PIP
" 
" Actually, no. What is needed is some form of i/o capture utility. I believe

I was a little terse -- I couldn't remember anything more than that I
had used PIP for this on the Kaypro II.  Now it's coming back to me.  A
terminal program with a capture-text-in-file mode should work.  But you
can use PIP if you're desperate.  You have to modify PIP with DDT by
inserting a few assembler instructions to read the port.  This is a
supported hack -- there's a little room left in PIP for this very
purpose.  As I recall, there is ascii text in the PIP code saying where
the right place is.
			Greg, lee@uhccux.uhcc.hawaii.edu