lpr

Print files

Syntax
      lpr  [-E]  [-H server[:port]]  [-U  username] [-P destination[/instance] ]
         [ -# num-copies  [-h] [-l] [-m] [-o option[=value] ]
            [-p] [-q] [-r] [-C/-J/-T title] [ file(s) ]

Options
   -E   Force encryption when connecting to the server.

   -H server[:port]
        Specify an alternate server.

   -C "name"   Set the job name/title.
   -J "name"   Set the job name/title.
   -T "name"   Set the job name/title.

   -P destination[/instance]
        Print files to the named printer.

   -U username
        Specifies an alternate username.

   -# copies
        Sets the number of copies to print.

   -h   Disables  banner  printing.
        This option is equivalent to -o job-sheets=none.

   -l   Specifies that the print file is already formatted for the destination and
        should be sent without filtering. This option is equivalent to -o raw.

   -m   Send an email on job completion.

   -o option[=value]
        Sets a job option.

   -p   Specifies  that  the  print file should be formatted with a shaded header
        with the date, time,  job  name,  and  page  number.
        This option  is  equivalent  to  -o prettyprint and is only useful when
        printing text files.

   -q   Hold job for printing.

   -r   Specifies that the named print files should be deleted after  submitting them.

lpr submits files for printing. Files named on the command line are sent to the named printer (or the system default destination if no des- tination is specified). If no files are listed on the command-line lpr reads the print file from the standard input.

THE DEFAULT DESTINATION CUPS provides many ways to set the default destination. The LPDEST and PRINTER environment variables are consulted first. If neither are set, the current default set using the lpoptions(1) command is used, fol- lowed by the default set using the lpadmin(8) command.

The -c, -d, -f, -g, -i, -n, -t, -v, and -w options are not supported by CUPS and produce a warning message if used.

"Documentation is the castor oil of programming. Managers know it must be good because the programmers hate it so much" ~ Anon

Related:

lpr man page - Apple.com
enable - Stop or start printers and classes.
lprm - Remove jobs from the print queue
lpstat - Printer status information
cancel - Cancel print jobs
lp - print files
lpadmin - printer admin
lpc - Line printer control program


Copyright © SS64.com 1999-2017
Some rights reserved