1PAP(1) Netatalk 2.1 PAP(1)
2
3
4
6 pap - client interface to remote printers using Printer Access Protocol
7
9 pap [-A address] [-c] [-d] [-e] [-E] [-p nbpname] [-s statusfile] [-w]
10 [-W] [FILES]
11
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
15 execution, it tries to open a session with the printer using PAP, and
16 then 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
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 atalk_aton(3)
35 for the syntax of address.
36
37 -c
38 Take cuts. The PAP protocol specified a simple queuing procedure,
39 such that the clients tell the printer how long they have been
40 waiting to print. This option causes pap to lie about how long it
41 has been waiting.
42
43 -d
44 Enable debug output.
45
46 -e
47 Send any message from the printer to stderr instead of stdout.
48 psf(8) invokes pap with this option.
49
50 -E
51 Don´t wait for EOF from the printer. This option is useful for
52 printers which don´t implement PAP correctly. In a correct
53 implementation, the client side should wait for the printer to
54 return EOF before closing the connection. Some clients don´t wait,
55 and hence some printers have related bugs in their implementation.
56
57 -p nbpname
58 Connect to the printer named nbpname and do not consult the .paprc
59 file to find a printer name. See nbp_name(3) for the syntax of
60 nbpname.
61
62 -s statusfile
63 Update the file called statusfile to contain the most recent status
64 message from the printer. pap gets the status from the printer
65 when it is waiting for the printer to process input. The statusfile
66 will contain a single line terminated with a newline. This is
67 useful when pap is invoked by psf(8) within lpd´s spool directory.
68
69 -w
70 Wait for the printer status to contain the word "waiting" before
71 sending the job. This is to defeat printer-side spool available on
72 HP IV and V printers.
73
74 -W
75 Wait for the printer status to contain the word "idle" before
76 sending the job. This is to defeat printer-side spool available on
77 HP IV and V printers.
78
80 .paprc
81 file read to obtain printer name if not specified on command line
82
84 nbp_name(3), atalk_aton(3), lpd(8), psf(8).
85
86
87
88Netatalk 2.1 6 May 2002 PAP(1)