🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.msdos.apps
2 messages
2 total messages Started by Wayne Ngai Fri, 08 Jan 1993 19:50
Printing from Unix to a printer attached to PC terminal
#3164
Author: Wayne Ngai
Date: Fri, 08 Jan 1993 19:50
12 lines
1109 bytes
	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?

THANKS IN ADVANCE!!!
--Wayne
Re: Printing from Unix to a printer attached to PC terminal
#3167
Author: 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!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads