Oki B6100n Guide: Administration and Installation, B6100 UNIX Printing Softwar - Page 100

lpspr Command, Input File Data Types, Defining Data Types, lpspr Command Option Flags

Page 100 highlights

Chapter 6: Running the Software lpspr Command The lpspr command prepares input files for printing on PostScript printers. It is a command line interface utility that lets you select printer features such as duplexing and paper size, that control how a print job is to be printed. lpspr will work on any PostScript printer model that has a PostScript Printer Description (ppd) file. Formatted output is written to standard output, allowing for redirection by piping, to the specified print job submission command (lp, lpr). Input File Data Types lpspr will work on the following types of input files. • ASCII text. This type of text is automatically converted to PostScript in the output stream. • PostScript text If a particular input file is not specified, lpspr will read directly from the standard input. Defining Data Types The -D flag lets you identify the data type of an input file. If you do not include this flag as part of the command, lpspr will attempt to determine the data type of the input file by examining the first two characters within the file. If the first two characters of the input file do not match the character sequence ''%!'', lpspr will handle the input data as ASCII text. lpspr Command Option Flags The following is a list of flags that you can include as part of the lpspr command: Table 6-1. lpspr Command Option Flags Flag Description Definition -D datatype Defines the input data type. There are two: • ascii - ASCII data • post - PostScript data -I tray Selects the input paper tray that supplies paper for the print job. 6-948/25/02 UNIX Printing Software Administration and Installation Guide

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106

6-94
8/25/02
UNIX Printing Software Administration and Installation Guide
Chapter 6: Running the Software
lpspr Command
The lpspr command prepares input files for printing on PostScript printers.
It is a
command line interface utility that lets you select printer features such as duplexing
and paper size, that control how a print job is to be printed.
lpspr will work on any
PostScript printer model that has a PostScript Printer Description (ppd) file.
Formatted output is written to standard output, allowing for redirection by piping, to
the specified print job submission command (lp, lpr).
Input File Data Types
lpspr will work on the following types of input files.
ASCII text.
This type of text is automatically converted to PostScript in the output stream.
PostScript text
If a particular input file is not specified, lpspr will read directly from the standard
input.
Defining Data Types
The
-D
flag lets you identify the data type of an input file.
If you do not include this
flag as part of the command, lpspr will attempt to determine the data type of the input
file by examining the first two characters within the file.
If the first two characters of
the input file do not match the character sequence
’’%!’’
, lpspr will handle the input
data as ASCII text.
lpspr Command Option Flags
The following is a list of flags that you can include as part of the lpspr command:
Table 6-1.
lpspr Command Option Flags
Flag
Description
Definition
-D
datatype
Defines the input data type.
There are two:
ascii - ASCII data
post - PostScript data
-I
tray
Selects the input paper tray that supplies paper for
the print job.