Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pap(8) [redhat man page]

PAP(8)							      System Manager's Manual							    PAP(8)

NAME
pap - download files to or communicate interactively with an AppleTalk network connected printer SYNOPSIS
/usr/sbin/pap [ -d ] [ -p printer ] [ -s statusfile ] [ files ] DESCRIPTION
pap is used to connect and send files to an AppleTalk connected printer using the Apple Printer Access Protocol (PAP). pap can also be used to conduct an interactive session with a PostScript printer. When pap 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 files to the printer. If no files are given on the command line, pap begins reading from standard input. If no printer is specified on the command line, pap looks for a file called .paprc in the current directory and reads it to obtain the name of a printer. The .paprc file should contain a single line of the form object:type@zone where each of object, :type, and @zone are optional. type and zone must be proceeded by `:' and `@' respectively. Lines the begin with a `#' are ignored. type and zone default to LaserWriter and the zone of the local host, respectively. Note that pap is designed to be useful as a communication filter for sending lpd(8) spooled print jobs to AppleTalk connected printers. See psf(8) for hints on how to use it this way. OPTIONS
-p printer Connect to the printer named printer (do not consult the .paprc file to find a printer name). The syntax for printer is the same as discussed above for the .paprc file. -s statusfile Update the file called statusfile to contain the most recent status message from the printer. pap gets the status from the printer when it is waiting for the printer to process input. The statusfile will contain a single line terminated with a newline. This is useful when pap is invoked by lpd(8) within lpd's spool directory. -c 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 pap to lie about how long it's been waiting. -e Send stdout to stderr. This causes information that the printer returns to be recorded as error output for lpd. -E Don't wait for EOF from the printer. This option is useful for printers which don't implement PAP correctly. In a correct imple- mentation, 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. -w 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. FILES
.paprc file that contains printer name ~/.paprc secondary file to look in for printer name SEE ALSO
nbp(1), pap(4), lpd(8), papstatus(8), psf(8). BUGS
pap will send a quit command to exit interactive mode when it gets an end-of-file on a tty. If the user has already typed quit themselves, the quit that pap sends is spurious and will cause a PostScript error. The fix would be for pap to watch what the user types and look for quit, but this is impractical. netatalk 1.2 13 Dec 1991 PAP(8)

Check Out this Related Man Page

lpc(8)							      System Manager's Manual							    lpc(8)

Name
       lpc - line printer control program

Syntax
       /etc/lpc [ command [ argument...  ] ]

Description
       The  program  is used by the system administrator to control the operation of the line printer system.  For each line printer with an entry
       in the file, may be used to start/stop several different functions.

       Without any arguments, prompts for commands from the standard input.  If arguments are supplied, interprets the first argument as a command
       and  the  remaining  arguments as parameters to the command.  The standard input may be redirected causing to read commands from file.  The
       commands and their parameters are shown below.  Commands may be abbreviated.

       ? [ command... ]
       help [ command... ]

	      Prints a short description of each command specified in the argument list, or, if no arguments are given, a list of  the	recognized
	      commands.

       abort [ all ] [ printer... ]

	      Terminates  an  active  spooling	daemon on the local host immediately and then disables printing (preventing new daemons from being
	      started by for the specified printers.

       clean [ all ] [ printer... ]

	      Removes all files beginning with ``cf'', ``tf'', or ``df'' from the specified printer queue(s) on the local machine.

       enable [ all ] [ printer... ]

	      Enables spooling on the local queue for the listed printers.  This will allow to put new jobs in the spool queue.

       exit
       quit

	      Exits from

       disablefR [ all ] [ printer... ]

	      Turns off the specified printer queues.  This prevents new printer jobs from being entered into the queue by

       restart [ all ] [ printer... ]

	      Attempts to start a new printer daemon.  This is useful when some abnormal condition causes the daemon to die  unexpectedly  leaving
	      jobs in the queue.  The command will report that there is no daemon present when this condition occurs.

       start [ all ] [ printer... ]

	      Enables  printing  and  starts  a spooling daemon for the listed printers.  This command also creates an file in the printer's spool
	      directory.  The file can be used by filters as an initialization flag.

       status [ all ] [ printer... ]

	      Displays the status of daemons and queues on the local machine.

       stop [ all ] [ printer... ]

	      Stops a spooling daemon after the current job completes and disables printing.

       topq printer [ jobnum... ] [ user... ]

	      Places the jobs in the order listed at the top of the printer queue.

Diagnostics
       ?Ambiguous command
       Abbreviation matches more than on command.

       ?Invalid command
       No match was found.

       ?Privileged command
       The command can only be executed by root.

Files
       Printer description file

       Spool directories

       Lock file for queue control

See Also
       lpq(1), lpr(1), lprm(1), printcap(5), lpd(8)

																	    lpc(8)
Man Page