1pap(1)                             Netatalk                             pap(1)
2
3
4

NAME

6       pap - client interface to remote printers using Printer Access Protocol
7

SYNOPSIS

9       pap [ -A address ] [-c] [-d] [-e] [-E] [ -p nbpname ] [ -s statusfile ]
10       [-w] [-W] [FILES]
11

DESCRIPTION

13       pap is used to connect and send files to an AppleTalk connected printer
14       using  the Apple Printer Access Protocol (PAP).  When pap starts execu‐
15       tion, it tries to open a session with the printer using PAP,  and  then
16       downloads the files to the printer.
17
18       If  no  files  are  given  on the command line, pap begins reading from
19       standard input.
20
21       If no printer is specified on the command line, pap looks  for  a  file
22       called  .paprc  in the current working directory and reads it to obtain
23       the nbpname of a printer. Blank lines and lines that begin with  a  `#'
24       are  ignored.  type and zone default to LaserWriter and the zone of the
25       local host, respectively.
26
27       Note that pap is designed to be useful as a  communication  filter  for
28       sending  lpd(8) spooled print jobs to AppleTalk connected printers. See
29       psf(8) for hints on how to use it this way.
30

OPTIONS

32       -A address
33              Connect to the printer with Appletalk address address and do not
34              consult   the   .paprc   file   to  find  a  printer  name.  See
35              atalk_aton(3) for the syntax of address.
36
37       -c     Take cuts. The PAP protocol specified a  simple  queuing  proce‐
38              dure,  such that the clients tell the printer how long they have
39              been waiting to print. This option causes pap to lie  about  how
40              long it has been waiting.
41
42       -d     Enable debug output.
43
44       -e     Send  any  message from the printer to stderr instead of stdout.
45              psf(8) invokes pap with this option.
46
47       -E     Don't wait for EOF from the printer. This option is  useful  for
48              printers  which  don't  implement  PAP  correctly.  In a correct
49              implementation, the client side should wait for the  printer  to
50              return  EOF  before  closing  the connection. Some clients don't
51              wait, and hence some printers have related bugs in their  imple‐
52              mentation.
53
54       -p nbpname
55              Connect  to  the  printer  named  nbpname and do not consult the
56              .paprc file to find a printer name. See nbp_name(3) for the syn‐
57              tax of nbpname.
58
59       -s statusfile
60              Update  the  file  called  statusfile to contain the most recent
61              status message from the printer.  pap gets the status  from  the
62              printer when it is waiting for the printer to process input. The
63              statusfile will contain a single line terminated with a newline.
64              This  is useful when pap is invoked by psf(8) within lpd's spool
65              directory.
66
67       -w     Wait for the printer status to contain the word "waiting" before
68              sending  the job. This is to defeat printer-side spool available
69              on HP IV and V printers.
70
71       -W     Wait for the printer status to contain the  word  "idle"  before
72              sending  the job. This is to defeat printer-side spool available
73              on HP IV and V printers.
74

FILES

76       .paprc file read to obtain printer name if  not  specified  on  command
77              line
78

SEE ALSO

80       nbp_name(3), atalk_aton(3), lpd(8), psf(8).
81
82
83
84
852.0.3                             6 May 2002                            pap(1)
Impressum