🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.apps
Article #3167

Re: Printing from Unix to a printer attached to PC terminal

#3167
From: Roger Horner
Date: Fri, 08 Jan 1993 20:33
39 lines
2306 bytes
In article <2B4DDB1A.14864@ics.uci.edu> wngai@bonnie.ics.uci.edu (Wayne Ngai) writes:
>	Hi!  I was wondering if there is/are any existing program(s) out
>there that would allow for a PC terminal to print a file on the Unix
>machine to the local printer that's attached to the PC terminal. e.g.
>say I'm hook up to a Unix machine via modem, and I want to print a
>file on the Unix machine to my PC printer.  Is there anyway of doing
>that without having to download the file to my PC and do some
>conversion to printout the file?  i.e. sending the print job to
>printer attached to terminal.  If there is such a program, could some
>kind soul please tell me where and how can I get a hold of it?

There is a C program at oak.oakland.edu in /pub/msdos/kermit called pcprint.c.
You can either download this file and compile it on your UNIX machine, or you
can create the following csh script file which was copied from the MS-KERMIT
USERS GUIDE:
-----------------------------CUT HERE-------------------------------
#!/bin/sh
# pcprint
# usage: pcprint file(s)
# or <any UNIX process that writes to standard output> | pcprint
#
echo -n '[5i'
if [ $# -eq 0 ]; then
  cat
else
  cat $*
fi
echo -n '[4i'
-----------------------------CUT HERE-------------------------------

Both of these programmes use a feature of the VT100 terminal which many but not
all terminal emulators provide (MS-KERMIT and Bitcom do, but Q-Modem does not).

I hope this helps.
-- 
-------------------------------------------------------------------------------
Roger Horner (rhorner@sirius.UVic.ca)                    University of Victoria
4th Year Electrical Engineering Student                  Victoria, BC, Canada
              If you don't like my spelling, use a real dictionary!
Technical Details
Message-ID: <1993Jan8.203348.10520@sol.UVic.CA>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!caen!destroyer!cs.ubc.ca!news.UVic.CA!ugly!rhorner
References: <2B4DDB1A.14864@ics.uci.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.apps
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!caen!destroyer!cs.ubc.ca!news.UVic.CA!ugly!rhorner
From: rhorner@ugly.UVic.CA (Roger  Horner)
Subject: Re: Printing from Unix to a printer attached to PC terminal
Message-ID: <1993Jan8.203348.10520@sol.UVic.CA>
Sender: news@sol.UVic.CA
Nntp-Posting-Host: ugl-gw.uvic.ca
Organization: University of Victoria, Victoria, BC, Canada
References: <2B4DDB1A.14864@ics.uci.edu>
Date: Fri, 8 Jan 93 20:33:48 GMT
Lines: 39