is used to connect and send files to an AppleTalk connected printer using
the Apple Printer Access Protocol (PAP).
can also be used to conduct an interactive session with a PostScript
starts execution, it first tries obtain the status of the printer. It
then tries to open a session with the printer using PAP, and
then downloads the
to the printer.
are given on the command line,
begins reading from standard input.
If no printer is specified on the command line,
looks for a file called
in the current directory and reads it to obtain the name of a printer. The
file should contain a single line of the form
where each of
must be proceeded by
respectively. Lines the begin with a
and the zone of the local host, respectively.
is designed to be useful as a communication filter for sending
spooled print jobs to AppleTalk connected printers. See
for hints on how to use it this way.
Connect to the printer named
(do not consult the
file to find a printer name). The syntax for
is the same as discussed above for the
Update the file called
to contain the most recent status message from the printer.
gets the status from the printer when it is waiting for the printer to
process input. The
will contain a single line terminated with a newline. This is useful
is invoked by
Take cuts. The PAP protocol specified a simple queuing procedure, such
that the clients tell the printer how long they've been waiting to
print. This option causes
to lie about how long it's been waiting.
Send stdout to stderr. This causes information that the printer
returns to be recorded as error output for lpd.
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.
Wait for the printer's status to contain the word "waiting" before
sending the job. This is to defeat printer-side spool available on HP
IV and V printers.
will send a
command to exit interactive mode when it gets an end-of-file
on a tty. If the user has already typed
sends is spurious and will cause a PostScript error. The fix would be for
to watch what the user types and look for quit, but this is impractical.