#
# Copyright (c) 1990 Bradley University
# All rights reserved
#
This directory contains the source files for lpr on System V, 
without a daemon running for printing files across the network
to a 4.3BSD or SunOS system.

The following list describes the files in the directory:

Makefile	The makefile is used to compile the source files.
		The installation of this program is also done through
		makefile which is explained later.

README		This file.

lp.h		Header file for printjob.c

lp.c		Main program which establishes connection for each
		job, and calls the printjob.c routines for sending
		the files.

printjob.c	Is responsible for sending both the control file
		and the data file to be printed which spools in the
		remote machine(server) for later to be processed
		by the "lpd" on the server.

minterface	This is a version of dumb interface which is used
		by the installation to configure a new model, which
		will be later be used as an interface program while
		adding the printer through your "sysadm lpmgmt". 


In order to compile your program use

	make

After compilation you have to log in as root to install the package.
Issue the following make command to install:

	make MODELNAME=rprt SERVER=bradley LP=prt install

where MODELNAME is the name of the interface program that your printer
that is to be added will be using to configure you new printer, SERVER
is the name of the server to which files will be sent for printing(make
sure the name you specify exits in the /etc/hosts file and LP is the 
printer name to which the files will be queued for printing.  If you
are not the System Administrator of the server machine, make sure the
name you specify for the LP is one of the printer's available for 
printing in the server machine.

Also request the System Administrator of the server machine to include
your machine hostname in the server /etc/hosts.lpd file, only then the
server will start accepting the files from the client.

	For the "lp" of System V to accept the jobs for the remote 
printer you need to add a new printer either through the sysadm menu
or using the following command:

	/usr/lib/admin -prprt -mrprt -v/dev/null

in this case the printer name and interface name are same. In either
case, you need to use the menu option of "lpmgmt" for answering the
following queries as follows:

Type of printer: (default:unknown)

hit return

Printer interface to use: (default: rprt)

hit return

How should printing restart after you fix a printer fault?
(default: continue) wait

use wait in this case and hit return

Printer port to use: /dev/null

The other queries can be configured answer as required. However, only 
simple files can be printed.  

To submit jobs for the new printer "rprt" you can test with your normal
lp command as follows:

	lp -drprt -n2 test.c

Any error messages due to the remote machine will be seen by a mail 
message to the person submit the job.  This also means the job is still
available on the queue on the client and once the remote machine problem
is fixed, the system administrator has to enable the printer(on some
versions of lpsched).

Krishnakumar Siva
kumar@bradley.edu
Bradley University
