Spooling to a printer attached to a terminal port
Conor P. Cahill
cpcahil at virtech.uucp
Mon Sep 17 07:42:47 AEST 1990
In article <855 at zeusa.UUCP> hendrik at zeusa.UUCP (Hendrik Vermooten) writes:
>My question is this: is there a way this can be done if you have a port
>card that does not have this feature?
No. You cannot share the bandwidth because there is no way to
guarantee how much of your printer data can go without being interrupted
by some data to go to the terminal. The reason that the card can do this
is that it has control of all data going to the tty and knows what data is
supposed to go to the printer and what data is supposed to go to the
terminal.
What you could do is have the program that is running on the tty stop
sending output, send the "output to lp" sequence, dump the data that
you want to print, send the "reset redirection (turn printer off)"
sequence, and finally restart the normal program output.
--
Conor P. Cahill (703)430-9247 Virtual Technologies, Inc.,
uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160
Sterling, VA 22170
More information about the Comp.unix.questions
mailing list