Article View: comp.sys.ibm.pc
Article #14444Re: Wanted: unix tty server that will act as a printer for a PC
From: Tom Reingold
Date: Sat, 29 Nov 1986 22:55
Date: Sat, 29 Nov 1986 22:55
33 lines
1915 bytes
1915 bytes
In article <549@orcisi.UUCP>, michael@orcisi.UUCP writes:
>A COM port on an IBM PC is connected to a serial line on a Unix
>machine. On the PC, I copy/print a file to the COM port. The tty
>server on the unix machine receives the file and spools it to a laser
>printer attached to the unix machine. Assume that only simple ascii
>files are to be printed and transmitted.
>
>The only problem I can forsee is how will the tty server detect the end
>of the file?
>
>Has anyone ever tried this?
>
>Michael Herman
Why not add a line to the file you are sending through the COM port? You
can do this with a batch file rather that modifying the file. Use a batch
file like the following:
copy %1 COM1
echo ^D > COM1
It would send an extra newline to the port, but that should not present any
severe problems.
--
Tom Reingold -- Rockefeller Univ, 1230 York Av, NY 10021; (212) 570-7709
UUCP: {seismo|philabs|phri|harvard|ihnp4}!cmcl2!rna!rocky2!reintom
ARPANET: reintom@rockefeller.arpa <<<<<<<->>>>>> BITNET: REINTOM@ROCKVAX
--
########################################################################
Tom Reingold -- Rockefeller Univ, 1230 York Av, NY 10021; (212) 570-7709
UUCP: {seismo|philabs|phri|harvard|ihnp4}!cmcl2!rna!rocky2!reintom
ARPANET: reintom@rockefeller.arpa <<<<<<<->>>>>> BITNET: REINTOM@ROCKVAX
Technical Details
Message-ID:
<288@rocky2.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!cmcl2!rna!rocky2!reintomReferences:
<549@orcisi.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!cmcl2!rna!rocky2!reintom From: reintom@rocky2.UUCP (Tom Reingold) Newsgroups: comp.sys.ibm.pc,comp.sources.wanted Subject: Re: Wanted: unix tty server that will act as a printer for a PC Message-ID: <288@rocky2.UUCP> Date: Sat, 29-Nov-86 17:55:55 EST Article-I.D.: rocky2.288 Posted: Sat Nov 29 17:55:55 1986 Date-Received: Sat, 29-Nov-86 22:46:08 EST References: <549@orcisi.UUCP> Distribution: net Organization: Rockefeller Univ.,N.Y.C 10021 Lines: 33