


      LPR(1)                      (bsd 4.1)                      LPR(1)



      NAME
           lpr, lprm, lpq, print - line printer spooler

      SYNTAX
           lpr [ -m ] [ name ... ] [ -b ] [ -c ] [ -r ]
           lprm [ id ... ] [ filename ... ] [ owner ... ]
           lpq
           print [ file ... ]

      DESCRIPTION
           Lpr puts the named files into an output queue, and prints
           them when the output device is ready.  -m causes
           notification of job completion to be sent by mail(1).

           Lpr normally does not move or copy the files to the spool
           area, but they wait in the current directory for their turn
           to be printed.  This means that a file should not be
           modified in the current directory if it has been spooled
           because the wrong version of the file may be printed.
           -b prints the specified word as a banner.  For example,

                lpr -b test file.c

           prints the word "test" as a large header before the file
           ``file.c'' is printed.
           -c causes the named file to be copied to the spool area,
           using more disc space but allowing the original file to be
           modified independent of the spooled copy.
           -r causes the named file to be moved to the spool area, and
           removed from the current directory altogether. This is a
           dangerous option; use it carefully.

           Lpq displays information about all files in the output
           queue.  For each file, lpq reports its owner, an id number,
           its size in characters, and its name.

           Lprm removes a named file from the output queue. The file
           can be specified by its id, filename, or owner.  Use a
           file's id from the lpq output to remove it from the queue
           with lprm.

           Print prints a copy of each named file on the line printer.
           It is actually a one-line shell script: pr $* | lpr .

      FILES
           /usr/spool/lpd/*        spool area
           /usr/lib/lpd            line printer daemons
           /usr/lib/lpf            file to handle banners and underlining

      SEE ALSO
           pr(1)




      Page 1                                          (73 A2 02MT REV1)






      LPR(1)                      (bsd 4.1)                      LPR(1)



      BUGS
           It is possible for one user to remove another user's file
           with lprm.




















































      Page 2                                          (73 A2 02MT REV1)



