Files
oldlinux-files/Minix/2.0.0/wwwman/man1/lp.1.html
2024-02-19 00:21:39 -05:00

76 lines
2.3 KiB
HTML

<HTML>
<HEAD>
<TITLE>lp(1)</TITLE>
</HEAD>
<BODY>
<H1>lp(1)</H1>
<HR>
<PRE>
</PRE>
<H2>NAME</H2><PRE>
lp, lpd - copy a file to the line printer
</PRE>
<H2>SYNOPSIS</H2><PRE>
<STRONG>lp</STRONG> [<EM>file</EM> ...]
</PRE>
<H2>DESCRIPTION</H2><PRE>
Each file argument to <STRONG>lp</STRONG> is send to the line printer to be printed.
Standard input is read and printed if there are no arguments. <STRONG>Lp</STRONG>
executes <STRONG>/usr/lib/lpd</STRONG> with each file as input. <STRONG>Lpd</STRONG> puts the file in
<STRONG>/usr/spool/lpd</STRONG> and starts printing the jobs on <STRONG>/dev/lp</STRONG> unless another <STRONG>lpd</STRONG>
is already running. If <STRONG>lpd</STRONG> 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. <STRONG>Lpd</STRONG> simply
assumes that you know what you are doing. (dumb, eh?)
Note: Don't do anything with a file until it is printed, <STRONG>lpd</STRONG> only makes a
copy of a file in the spool directory when it is not world readable. If
it can be read then it is printed directly.
</PRE>
<H2>FILES</H2><PRE>
<STRONG>/usr/spool/lpd/job</STRONG><EM>XXXXX</EM>
Information about a job.
<STRONG>/usr/spool/lpd/tmp</STRONG><EM>XXXXX</EM>
Associated file to be printed.
<STRONG>/etc/termcap</STRONG> The 'lp' entry describes the printer by the "li#" and
"co#" fields. By default 66 lines (li#66), and 80
columns (co#80).
</PRE>
<H2>SEE ALSO</H2><PRE>
<STRONG><A HREF="../man4/lp.4.html">lp(4)</A></STRONG>, <STRONG><A HREF="../man5/termcap.5.html">termcap(5)</A></STRONG>, <STRONG><A HREF="../man7/termcap.7.html">termcap(7)</A></STRONG>.
</PRE>
<H2>BUGS</H2><PRE>
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.
</PRE>
<H2>AUTHOR</H2><PRE>
Kees J. Bot (kjb@cs.vu.nl)
</PRE>
</BODY>
</HTML>