LPR(1) Reference Manual LPR(1) NAME lpr - send file to a lpd spooler on a remote machine SYNOPSIS lpr (-Pprinter] | (-Rserver -Qqueue)) [-C class] [-J job] [-T title] [-U user] [-i [numcols]] [-wnum] [-cdefghlnmoprstv] name DESCRIPTION Lpr sends a named file to a remote spooling daemon to print when the facilities become available. Lpr uses the filetype of the specified file to determine the file's 'format', and instructs the remote spooler accordingly. The currently supported filetypes are:- FFF - "Text" Treat as plian text, LF seperate lines remote end can format as text, discard ctrl chars etc. FE5 - "PoScript" Treat file as a Postscript program. Same as -o. FC9 - "SunRastr" Treat the file as Sun Raster formaat. Same as -v. Note: Acorn use the file type for a different format, this is the same as !Translator. CE4 - "DVI" Treat file as a dvi file. Same as -d. The program defaults to -l, if the filetype id unrecognised and none of the swicthes below are speified. The following single letter options are used to notify the line printer spooler that the files are not to processed acccording to filetype. The spooling daemon will use the appropriate filters to print the data accordingly. -c The files are assumed to contain data produced by cifplot(1) -d The files are assumed to contain data from tex (DVI format from Stanford). -e The files are assumed to be plain text. Page breaks are added where necessary. -f Use a filter which interprets the first character of each line as a standard FORTRAN carriage control character. -g The files are assumed to contain standard plot data as produced by the plot routines (see also plot for the filters used by the printer spooler). -l Use a filter which allows control characters to be printed and suppresses page breaks. -n The files are assumed to contain data from ditroff (device inde- pendent troff). -o The files are assumed to contain a Postscript or Postscript compatible program with rendering instructions. -p Use pr(1) to format the files (equivalent to print). -t The files are assumed to contain data from troff(1) (cat photo- typesetter commands). -v The files are assumed to contain a raster image for devices like the Benson Varian. These options apply to the handling of the print job: -P Force output to a specific printer. Normally, the default print- er is used (site dependent), or the value of the environment variable PRINTER is used. -R Specify remote machine to spool file to.This option must be used in conjunction with -R. The -P option takes precedence over -R and -Q. -Q Specify to queue nameon theremote machine to print to, must be used in conjunction with -R. The -P option takes precedence over -R and -Q. -h Suppress the printing of the burst page. -m Send mail upon completion. -r Remove the file upon completion of spooling or upon completion of printing (with the -s option). The remaining options apply to copies, the page display, and headers: -C class Job classification to use on the burst page. For example, lpr -C EECS foo.c causes the system name (the name returned by hostname(1)) to be replaced on the burst page by EECS, and the file foo.c to be printed. -J job Job name to print on the burst page. Normally, the first file's name is used. -T title Title name for pr(1), instead of the file name. -U user User name to print on the burst page, also for accounting purpos- es. -i [numcols] The output is indented. If the next argument is numeric (numcols), it is used as the number of blanks to be printed be- fore each line; otherwise, 8 characters are printed. -wnum Uses num as the page width for pr(1). ENVIRONMENT The following envoirnment variables are used by lpr:- lpr$jobNo This is a numeric variable incremented each time lpr is run.Itis usedto give each job a unique jobNo lpr$usr This variable contains the default username for to the printjob. Inet$HostName This is used to fetch to name of the localhost. Defined by !Internet and Freenet. Lpr also uses envoirnment variavles of the following forms:- lpr$PRINTER$printer If printer PRINTER is specified by used -P on the command line the lpr uses the queue name specified by this variable. lpr$PRINTER$machine If printer PRINTER is specified by used -P on the command line the lpr uses the remote machine specified by this variable. SEE ALSO RFC1179 .Docs.NotSpec. HISTORY The lpr command appeared in 3BSD. But more importantly the RISC-OS was written in Nov '96 and subsequently relased in Q2 '97 following discussions on csa.networking in the hope it might be useful. The current version was revised in Feb '98 to understand filetypes and give more control of the remote deamon. DIAGNOSTICS If you try to spool too large a file, it will be truncated. - At least I assume so, the RISC-OS version has little of the BSD code left but is *very* similiar. Bear in mind this could also occur at the remote end, the RISC-OS client can cope with file sizes up to 2GB. BUGS Fonts for troff(1) and tex reside on the host with the printer. It is currently not possible to use local font libraries. On the otherhand this means the risc-os version doesn't need to read the font files. rgammans@computer-surgery.co.uk Sun 1st February 1998. 3