View Single Post
turtle
Lord of the Rant.
Formerly turtle2472
 
Join Date: Mar 2005
Location: Upstate South Carolina
 
2005-03-27, 10:32

README.DOC - \Not_supp\Driver\LPT1
==================================

There are six files and one sub-directory (lpsource) in this directory.
The files are:

1.readme.doc
2.doc.ps
3.dumb_int.sh
4.install.sh
5.instmsgs
6.mycc

--readme.doc
This file.

--doc.ps
This is a PostScript data file containing 04 ASCII codes at its beginning and
the end. It is used for testing the PostScript printer connected with
PrintServer.

--dumb_int.sh
dumb_int.sh is a Bourne Shell script. It is an interface program of a dumb
printer for System V Unix. It pipes the banner page and data files to the
PSfilter program.

--install.sh
install.sh is provided to help user attach a printer on the PrintServer to the
UNIX system so that the printer acts as a local printer of the UNIX host.
install.sh attaches one printer at a time. If you have more than one printer
connected to the PrintServer, you must run install.sh for each printer.

If no paramaters are passed with install.sh, the install.sh program will go
through the interactive procedure, which will ask the questions about the
configuration of the printer one by one.

You can install PrintServer in a quick way with the default configuration
by passing the necessary arguments to install.sh.

The following arguments and options can be used:
(Options are shown in [ ], but the [ ] themselves are not typed in.
All arguments and options be on one line.)

install.sh printer_name PS_HostName
[pn=port_number]
[im=interface_model]
[d=delay_minutes]
[text]

Where:
*printer_name is the name of the printer to be added.
*PS_HostName is the host name of the print server device.
*interface_model is used only on system V, it is a model of the interface
program of the printer.
*port_number can be one of the following, depending on your PrintServer model:
1 parallel port 1
2 parallel port 2
3 parallel port 3
*delay_minutes is the number of minutes allowed for printer faults before
the print job being aborted. If delay_minutes is 0, the print job
will be aborted immediately after printer faults. If it is -1, the
PSfilter program will keep waiting for the recovery of the printer
faults.
*text is a parameter to instruct PSfilter to convert LineFeed to
CarriageReturn + LineFeed.

port_number, interface_model, delay minutes and text mode are optional.
If they are not specified, the parallel port 1, dumb_int.sh, -1(infinite
delay minutes) and non_text mode will be used.


--instmsgs
Contains all output messages of install.sh


--mycc
The mycc program is used to compile the psfilter.c source code. Its output
execution file is PSfilter in the subdirectory ./lpsource.
Normally, you don't have to run mycc; it will be invoked by install.sh.
To run mycc, type:
./mycc

It will be invoked by install.sh if there is no PSfilter in ./LPsource
directory.


lpsource subdirectory
---------------------

The lpsource subdirectory contains the following files:

--PS.aix41ppc, PS.sco3, PS.sco5, PS.sun5

These four executable files are provided in case there is no C Compiler in your
AIX 4.1 Power PC, SCO 3.x, SCO 5.x or SUN 5.x UNIX system. To use any of these
four programs, you need to copy the program file to a new file called "PSfilter"
in the LPsource directory.

--psfilter.c, errormsg.h

psfilter.c & errormsg.h are the source files used to generate the PSfilter
executable program.

PSfilter resides in the LPsource directory by default. PSfilter can be used as
a command line utility to print the print jobs through PrintServer. PSfiler can
also be invokded by UNIX's lp deamon in the background. PSfilter provides many
options to meet the needs of printing a print job. PSfilter takes the following
options:

-D destination Send data file to destination. Destination is the host name
of PrintServer. This option must be specified.
-P Data is sent to parallel port 2 of PrintServer.
-o3 Selected print port is parallel port 3.
(If -P or -o3 are not specified, parallel port 1 will be
used.)
-p string Send string before a print job to initialize the printer.
If blank spaces are in the string, quotes must be used to
identify the string.
-s string Send string after a print job to reset the printer.
If blank spaces are in the string, quotes must be used to
identify the string.
-h head_file Send head_file before a print job to initialize the printer.
Head file must be specified with full path.
-t tail_file Send tail_file after a print job to reset the printer.
Tail file must be specified with full path.
-d delay_min The number of minutes allowed for the occurrence of the printer
faults before the active print job is aborted. (Default value of
delay minutes is 0.)
-a AnotherPort Automatically send the print job to AnotherPort if the selected
printer is busy.
AnotherPort can be:

para1 Parallel port 1.
para2 Parallel port 2.
all The other two ports.

-T Convert LF in the print job to CR/LF.

Note: If both pre_string and head_file are specified, the pre_string is sent
before the head_file. Similarly, the tail file is sent before the
suf_string.

With the following commands, you can send a file to parallel port 1,
parallel port 2 or parallel port 3 respectively ( provided the PrintServer is
installed and its IP address is set).

PSfilter -D PS_name < file_name

PSfilter -D PS_name -P < file_name

PSfilter -D PS_name -o3 < file_name



*************** How to do a Quick PrintServer Installation ***************

1. Connect print cables and network cable to your PrintServer.

2. Connect power adapter to your PrintServer to power up the PrintServer.

3. Set the IP address of the PrintServer using rarp or bootp.
Reset the PrintServer so it will acquire the IP Address you assigned.

4. Go to the directory where the utilities will be installed. Insert the
CD into your CD-ROM device and type the command:

tar xvf CD-ROM mounted directory/Not_supp/driver/lptitar/lpti.tar


5. Change to the ./LPTI directory created by the previous command and
execute install.sh.
e.g.
cd LPTI
./install.sh <parameters>

6. On system V, print files by the following command:

lp -d printer_name file_names

On BSD system , print files by the following command:

lpr -P printer_name file_names


This is one of the readme.doc files in the Non-supported folder.

Louis L'Amour, “To make democracy work, we must be a nation of participants, not simply observers. One who does not vote has no right to complain.”
Visit our archived Minecraft world! | Maybe someday I'll proof read, until then deal with it.
  quote