PAP(1)
β¨ PAP(1) β the Netatalk AFP Fileserver Manual, but make it cute β¨
okay bestie, pull up a chair because today we're talking about pap, from the Netatalk AFP Fileserver Manual. it's the client interface to remote printers using the Printer Access Protocol. yes, printers. yes, AppleTalk. yes, we're doing retro networking and it's iconic. π¨οΈπ
πΈ NAME πΈ
pap β client interface to remote printers using Printer Access Protocol
like, that's the whole vibe. you talk to a printer, but make it AppleTalk. π
π SYNOPSIS π
pap [-A address] [-c] [-d] [-e] [-E] [-p nbpname] [-s statusfile] [-w]
[-W] [files]
π¦ DESCRIPTION π¦
okay so here's the tea. pap is what you use to connect to an AppleTalk-connected printer and send files to it, using the Apple Printer Access Protocol (that's the PAP, iykyk). the moment pap starts running, it tries to open a session with the printer using PAP, and then it downloads the files to the printer. slay, straightforward, no notes. β¨
if you don't hand it any files on the command line? no worries, it just starts reading from standard input. lowkey generous of it. π₯
if you don't specify a printer on the command line, pap goes looking for a file called .paprc in the current working directory and reads it to get the nbpname of a printer. blank lines get ignored, and so do lines that begin with a # (comments, we love her). and the defaults? type and zone default to LaserWriter and the zone of the local host, respectively. π«Ά
heads up bestie:papis designed to be useful as a communication filter for sendinglpd(8)spooled print jobs to AppleTalk connected printers. if that's your plan, go peek atpsf(8)for hints on how to use it that way. π
π OPTIONS π
-Aaddress β connect to the printer with Appletalk address address and do not go consulting the.paprcfile to find a printer name. for the syntax of address, checkatalk_aton(3). no.paprc, no problem. π«π-cβ take cuts. the PAP protocol specified a simple queuing procedure, where clients tell the printer how long they've been waiting to print. this option makespaplie about how long it has been waiting. π not me cutting the line at the printer. the audacity. periodt.-dβ enable debug output. let her yap. π£οΈ-eβ send any message from the printer tostderrinstead ofstdout. fun fact:psf(8)invokespapwith this option. β¨-Eβ don't wait for EOF from the printer. this one is for the printers that don't implement PAP correctly. in a correct implementation, the client side should wait for the printer to return EOF before closing the connection. but some clients don't wait, and hence some printers have related bugs in their implementation. so basically this flag exists because the printer world is messy and we're being forgiving about it. ππ«Ά-pnbpname β connect to the printer named nbpname and do not consult the.paprcfile to find a printer name. syntax of nbpname lives innbp_name(3). π―-sstatusfile β update the file called statusfile so it contains the most recent status message from the printer.papgrabs the status from the printer while it's waiting for the printer to process input. the statusfile will contain a single line terminated with a newline. this is genuinely useful whenpapis invoked bypsf(8)insidelpd's spool directory. πβ¨-wβ 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. we wait. patiently. π-Wβ wait for the printer status to contain the word βidleβ before sending the job. this too is to defeat printer-side spool available on HP IV and V printers. same energy, different word. π₯
π FILES π
.paprcβ file read to obtain printer name if not specified on command line
π§ SEE ALSO π§
nbp_name(3), atalk_aton(3), lpd(8), psf(8)
π AUTHOR π
Contributors to the Netatalk Project (https://netatalk.io/contributors)
and that's the whole page, bestie!! π this little legend shipped as part of Netatalk 4.5.1 β thank you for coming to my TED talk about making printers talk AppleTalk. stay hydrated, read your manpages, and may your spool always be ready πβ¨π¦
π¦ where this page comes from
- ubuntu stonking: papd 4.5.1~ds-1 Β· MIT~UMICH
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms