Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

lp(1) [minix man page]

LP(1)							      General Commands Manual							     LP(1)

lp, lpd - copy a file to the line printer SYNOPSIS
lp [file ...] DESCRIPTION
Each file argument to lp is send to the line printer to be printed. Standard input is read and printed if there are no arguments. Lp exe- cutes /usr/lib/lpd with each file as input. Lpd puts the file in /usr/spool/lpd and starts printing the jobs on /dev/lp unless another lpd is already running. If lpd finds any character in the input that it doesn't know how to handle then it will print the rest of the file without any special treatment. This also means that no formfeed is sent after the file has been printed to force out the page. Lpd simply assumes that you know what you are doing. (dumb, eh?) Note: Don't do anything with a file until it is printed, lpd only makes a copy of a file in the spool directory when it is not world read- able. If it can be read then it is printed directly. FILES
/usr/spool/lpd/jobXXXXX Information about a job. /usr/spool/lpd/tmpXXXXX Associated file to be printed. /etc/termcap The 'lp' entry describes the printer by the "li#" and "co#" fields. By default 66 lines (li#66), and 80 columns (co#80). SEE ALSO
lp(4), termcap(5), termcap(7). BUGS
Not spooling a world readable file may not be such a smart idea. A formfeed should be printed and the printer reset after a job full of escape codes, but this may cost paper. No banner page. AUTHOR
Kees J. Bot ( LP(1)

Check Out this Related Man Page

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

psf - PostScript filter SYNOPSIS
psf [ -n name ] [ -h host ] [ -w width ] [ -l length ] [ -i indent ] [ -c ] DESCRIPTION
psf is an lpd filter for PostScript printing. psf interprets the name it was called with to determine what filters to invoke. First, if the string ``pap'' appears anywhere in the name, psf invokes pap to talk to a printer via AppleTalk. Next, if the string ``rev'' appears, psf invokes psorder to reverse the pages of the job. Finally, if psf was called with a filter's name as the leading string, it invokes that filter. If there is no filter to run, psf examines the magic number of the input, and if the input is not PostScript, converts it to Post- Script. KLUDGE
In the default configuration, psf supports two kludges. The first causes psf to check its name for the letter `m'. If this letter is found and accounting is turned on, psf calls pap twice, once to get an initial page count and to print the job, and another time to get a final page count. This is a work-around for bugs in a variety of PAP implementions that cause printers to never properly close the PAP output file. A notable example is any printer by Hewlett-Packard. The second kludge causes psf to examine its name for the letter `w'. If this letter is found and accounting is turned on, psf calls pap with the -w flag. This flag causes pap to wait until the printer's status contains the string `idle'. Once this string is found, the job is printed as normal. This kludge is a work-around for printers, notably Hewlett-Packard's LaserJet IV, which will report a page count while a previous jobs is still printing. EXAMPLE
The sample printcap entry below invokes psf to print text files, PostScript files, troff's C/A/T output, and TeX's DVI output, to an AppleTalk connected LaserWriter Plus. Since the LaserWriter Plus stacks pages in descending order, we reverse the pages and print the burst page last. laser|lp|LaserWriter Plus on AppleTalk: :sd=/usr/spool/lpd/laser: :lp=/usr/spool/lpd/laser/null: :lf=/var/adm/lpd-errs:pw#80:hl: :of=/usr/lib/filters/ofpap: :if=/usr/lib/filters/ifpaprev: :tf=/usr/lib/filters/tfpaprev: :df=/usr/lib/filters/dfpaprev: Note that if the host in question spools to more than one AppleTalk printer, /dev/null should not be used for the lp capability. Instead, a null device should be created with mknod for each printer, as has been done above. Finally, there is a file in the spool directory, /var/spool/lpd/laser, called .paprc, which pap reads for the AppleTalk name of the printer. SEE ALSO
psorder(1), printcap(5), lpd(8), mknod(8), pap(8). netatalk 1.2 17 Dec 1991 PSF(8)

Featured Tech Videos