3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
6 .\" Manual: Netatalk 2.2
7 .\" Source: Netatalk 2.2
10 .TH "PAP" "1" "6 May 2002" "Netatalk 2.2" "Netatalk 2.2"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
16 .\" disable justification (adjust text to left margin only)
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
22 pap \- client interface to remote printers using Printer Access Protocol
24 .HP \w'\fBpap\fR\fB\fR\ 'u
25 \fBpap\fR\fB\fR [\-A\ \fIaddress\fR] [\-c] [\-d] [\-e] [\-E] [\-p\ \fInbpname\fR] [\-s\ \fIstatusfile\fR] [\-w] [\-W] [\fIFILES\fR]
29 is used to connect and send files to an AppleTalk connected printer using the Apple Printer Access Protocol (PAP)\&. When
31 starts execution, it tries to open a session with the printer using PAP, and then downloads the
37 are given on the command line,
39 begins reading from standard input\&.
41 If no printer is specified on the command line,
43 looks for a file called
45 in the current working directory and reads it to obtain the
47 of a printer\&. Blank lines and lines that begin with a `\fB#\fR\' are ignored\&.
53 and the zone of the local host, respectively\&.
57 is designed to be useful as a communication filter for sending
59 spooled print jobs to AppleTalk connected printers\&. See
61 for hints on how to use it this way\&.
64 \fB\-A \fR\fIaddress\fR
66 Connect to the printer with Appletalk address
68 and do not consult the
70 file to find a printer name\&. See
78 Take cuts\&. The PAP protocol specified a simple queuing procedure, such that the clients tell the printer how long they have been waiting to print\&. This option causes
80 to lie about how long it has been waiting\&.
85 Enable debug output\&.
90 Send any message from the printer to stderr instead of stdout\&.
99 Don\'t wait for EOF from the printer\&. This option is useful for printers which don\'t implement PAP correctly\&. In a correct implementation, the client side should wait for the printer to return EOF before closing the connection\&. Some clients don\'t wait, and hence some printers have related bugs in their implementation\&.
102 \fB\-p\fR \fInbpname\fR
104 Connect to the printer named
106 and do not consult the
108 file to find a printer name\&. See
114 \fB\-s\fR \fIstatusfile\fR
116 Update the file called
118 to contain the most recent status message from the printer\&.
120 gets the status from the printer when it is waiting for the printer to process input\&. The
122 will contain a single line terminated with a newline\&. This is useful when
127 \fBlpd\fR\'s spool directory\&.
132 Wait for the printer status to contain the word "waiting" before sending the job\&. This is to defeat printer\-side spool available on HP IV and V printers\&.
137 Wait for the printer status to contain the word "idle" before sending the job\&. This is to defeat printer\-side spool available on HP IV and V printers\&.
143 file read to obtain printer name if not specified on command line