LPRBE(8,C) AIX TCP/IP User's Guide LPRBE(8,C) ------------------------------------------------------------------------------- lprbe PURPOSE Sends a file to a print server. SYNTAX +--------------------+ +--------+ lprbe ---| +----------------+ |---| |---| +-| -pserver=host |-+ +- file -+ ^| -pqueue=queue || || -filter=filter || || -naix || |+----------------+| +------------------+ DESCRIPTION The lprbe command is a backend program that sends print requests to a remote print server (the lpd program and printer on a foreign host). The lprbe command is normally called by the qdaemon command after you have queued a file with the print command. The flags and parameters that you enter with print are passed to lprbe, and it is lprbe that determines where and how the remote print job is done. The lprbe command supports the AIX piobe and print flags, as well as a set of filters that may exist on non-AIX systems. For more information on piobe and print, see AIX PS/2 Operating System Command Reference. If a client requests a filter that is not listed in the print server's /etc/filters file, the print daemon, lpd, send the file directly to the printer without processing (just as if the file were sent by the cat command). FLAGS -pserver = host Specifies which host is to receive the print request. If -pserver = is not specified, lprbe sends the print request to the host specified by a printserver entry in the /etc/hosts file or to the remote print server identified in the /etc/qconfig file. -pqueue = queuename Specifies a particular remote printing queue that is to receive the print request. -filter = filter Specifies a filter that is either a user-defined program (with or without its own flags) that pipes its output to print, or one of the Processed July 12, 1991 LPRBE(8,C) 1 LPRBE(8,C) AIX TCP/IP User's Guide LPRBE(8,C) following flags (which indicate that the files to be printed are not standard text files). If filter contains embedded blanks, it must be enclosed in double quotes (" "). These flags generate a control file that is compatible with non-AIX systems; if they are sent to an AIX system, they are ignored. -c Handles files that contain data produced by cifplot. -d Handles files that contain Tex data. -f Uses a filter that interprets the first character of each line as a standard FORTRAN carriage control character. -g Handles files that contain standard plot data as produced by the plot routines. -l Uses a filter that allows control characters to be printed and suppresses page breaks. -n Handles files that contain ditroff data. -p Uses pr to format the files. The results are equivalent to those obtained with the print command. -r Handles files that contain FORTRAN carriage control characters. -t Handles files that contain troff data. -v Handles files that contain a raster image for devices like the Benson Varian. -naix Generates a print control file for a non-AIX system. file Names one or more files to be printed. EXAMPLES 1. To print the file "testcase" on a foreign AIX host (when "rp0" is the name of the local host queue that handles outbound print requests): $ print rp0 testcase $ 2. To print on a foreign host "(host1)" other than the default printserver: $ print rp0 -pserver=host1 testcase $ 3. To select a specific print queue "(lp1)" on a foreign host: $ print rp0 -pqueue=lp1 testcase $ Processed July 12, 1991 LPRBE(8,C) 2 LPRBE(8,C) AIX TCP/IP User's Guide LPRBE(8,C) 4. To perform preprocessing on the foreign host (by the pr command) before printing: $ print rp0 -filter=00pr -w60 i500 testcase $ This filter generates the following command on the foreign host: pr -w60 -i5 testcase ] print 5. To print on a non-AIX foreign host (that is configured as the default printserver): $ print rp0 -naix testcase $ FILES /etc/qconfig Defines the queueing system configuration. /etc/hosts.equiv Defines foreign hosts that are permitted to execute commands. /etc/hosts.lpd Defines foreign hosts that are permitted to print. RELATED INFORMATION In this book: "hosts.lpd" and "lpd." Processed July 12, 1991 LPRBE(8,C) 3