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

lpr and lp, Example

Page 14 highlights

Chapter 1: Installing and Configuring UNIX Printing Software on a Compaq Tru64 UNIX System lpr and lp lpr and lp are two separate commands that are used by xlpsprint and lpspr for sending files to a spooler daemon for printing. The lpr command is used for BSD-based printing, and the lp command is used for System V-based printing. i xlpsprint is a graphical user interface that lets you select printer features and send files to a particular print queue. Refer to Chapter 6 for more information about xlpsprint. lpr and lp are the user interfaces into BSD and SYSTEM V spooling subsystems, respectively. Although lpr and lp both use a spooler daemon to queue files for printing, the process for sending the files to a printer differs. Another difference between the two subsystems is in the command syntax that you enter at the command line. A description of each command entry is as follows: • BSD-based Printing Users using UNIX systems that are based on the BSD derivative must enter the lpr command at the command line to send files to the spooler daemon for printing. # lpr -Pprinter filename where printer is the name of the print queue from /etc/printcap. where filename is the name of a file that you would like to print using the queued printer. Example: # lpr -PHallway_40 Test1.txt The -P flag identifies the name of the print queue. • System V-based Printing Users Using UNIX systems that are based on the SYSTEM V derivative must enter the lp command at the command line to send files to the spooler daemon for printing. # lp -dprinter filename where printer is the name of the print queue created by the system administrator using lpadmin, SMIT or another System V related utility. where filename is the name of a file that you would like to print using the queued printer. Example: 1-88/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

1-8
8/25/02
UNIX Printing Software Administration and Installation Guide
Chapter 1: Installing and Configuring UNIX Printing Software on a Compaq Tru64 UNIX System
lpr and lp
lpr
and
lp
are two separate commands that are used by
xlpsprint
and
lpspr
for sending files to a spooler daemon for printing. The
lpr
command is used for
BSD-based printing, and the
lp
command is used for System V-based printing.
lpr and lp are the user interfaces into BSD and SYSTEM V spooling subsystems,
respectively. Although
lpr
and
lp
both use a spooler daemon to queue files for
printing, the process for sending the files to a printer differs. Another difference
between the two subsystems is in the command syntax that you enter at the command
line. A description of each command entry is as follows:
BSD-based Printing
Users using UNIX systems that are based on the BSD derivative must enter the
lpr
command at the command line to send files to the spooler daemon for
printing.
#
lpr -Pprinter filename
where
printer
is the name of the print queue from /etc/printcap.
where
filename
is the name of a file that you would like to print using the
queued printer.
Example:
#
lpr -PHallway_40 Test1.txt
The -P flag identifies the name of the print queue.
System V-based Printing
Users Using UNIX systems that are based on the SYSTEM V derivative must
enter the lp command at the command line to send files to the spooler daemon for
printing.
#
lp -dprinter filename
where
printer
is the name of the print queue created by the system
administrator using
lpadmin
,
SMIT
or another System V related utility.
where
filename
is the name of a file that you would like to print using the
queued printer.
Example:
i
xlpsprint
is a graphical user interface that lets you select printer features and
send files to a particular print queue. Refer to Chapter 6 for more information
about xlpsprint.