|
|
1.1 ! root 1: .TH LP 1 ! 2: .CT 1 writing_output comm_dev ! 3: .SH NAME ! 4: lp \- printer output ! 5: .SH SYNOPSIS ! 6: .B lp ! 7: [ ! 8: .I option ... ! 9: ] ! 10: [ ! 11: .I file ... ! 12: ] ! 13: .SH DESCRIPTION ! 14: .I Lp ! 15: is a generalized output printing service. ! 16: It can be used to queue files for printing, ! 17: check a queue, or kill jobs in a queue. ! 18: The options are: ! 19: .TF -p\ \fIproc\fP ! 20: .TP ! 21: .BI -d " dest" ! 22: Select the destination printer. ! 23: If ! 24: .I dest ! 25: is ! 26: .LR ? , ! 27: list the currently available printers. ! 28: In the absence of ! 29: .LR -d , ! 30: the destination is taken from the environment variable ! 31: .BR LPDEST , ! 32: or finally from the file ! 33: .FR /usr/spool/lp/defdevice . ! 34: Destination ! 35: .L stdout ! 36: is the standard output. ! 37: .TP ! 38: .BI -p " proc" ! 39: The given preprocessor is invoked. ! 40: The default preprocessor is ! 41: .LR generic , ! 42: which tries to do the right thing for regular text, ! 43: .IR troff (1) ! 44: output, or ! 45: .IR bitfile (9.5) ! 46: bitmaps. ! 47: If no preprocessing is desired ! 48: (e.g. an ImPress file from ! 49: .L dviimp ! 50: is to be printed) ! 51: .L noproc ! 52: may be specified. ! 53: .TP ! 54: .B -q ! 55: Print the queue for the given destination. ! 56: For some devices, include printer status. ! 57: .TP ! 58: .B -k ! 59: Kill the job(s) given as subsequent arguments instead of file names ! 60: for the given destination. ! 61: .PD ! 62: .PP ! 63: The remaining options may be used to affect the output at a given device. ! 64: These options may not be applicable to all devices. ! 65: .TF -p\ \fIproc\fP ! 66: .TP ! 67: .BI -c " n" ! 68: Print ! 69: .I n ! 70: copies. ! 71: .TP ! 72: .BI -f " font" ! 73: Set the font (default ! 74: .LR CW.11 ). ! 75: .TP ! 76: .BI -H ! 77: Suppress printing of header page. ! 78: .TP ! 79: .BI -i " n" ! 80: Select paper input tray options ! 81: .I n. ! 82: The value ! 83: .I n ! 84: may be a comma separated list. ! 85: .TP ! 86: .BI -l " n" ! 87: Set the number of lines per page to ! 88: .I n. ! 89: .TP ! 90: .B -L ! 91: Print pages in landscape mode (i.e. turned 90 degrees). ! 92: .TP ! 93: .BI -m " n" ! 94: Set magnification to ! 95: .I n. ! 96: .TP ! 97: .BI -n " n" ! 98: Print ! 99: .I n ! 100: logical pages per physical page. ! 101: .TP ! 102: .BI -o " list" ! 103: Print only pages whose page numbers appear in ! 104: the comma-separated ! 105: .I list ! 106: of numbers and ranges. ! 107: A range ! 108: .IB n - m ! 109: means pages ! 110: .I n ! 111: through ! 112: .IR m ; ! 113: a range ! 114: .BI - n ! 115: means from the beginning to page ! 116: .IR n ; ! 117: a range ! 118: .IB n - ! 119: means from page ! 120: .I n ! 121: to the end. ! 122: .TP ! 123: .B -r ! 124: Reverse the order of page printing (currently not functional). ! 125: .TP ! 126: .BI -x " n" ! 127: Set the horizontal ! 128: offset of the print image, measured in inches. ! 129: .TP ! 130: .BI -y " n" ! 131: Set the vertical ! 132: offset of the print image, measured in inches. ! 133: .SH EXAMPLES ! 134: .TP 0 ! 135: .L ! 136: eqn paper | troff -ms | lp ! 137: Typeset and print a paper that contains equations. ! 138: .TP ! 139: .L ! 140: pr -l100 file | lp -l100 -fCW.8 ! 141: Print a file in a small font at 100 lines per page. ! 142: .TP ! 143: .L ! 144: lp -dstdout -H <bitfile >postfile ! 145: Convert a bitmap to postscript form. ! 146: Use ! 147: .IR mpictures (6) ! 148: macros to insert the output into a ! 149: .I troff ! 150: document. ! 151: .TP ! 152: .L ! 153: lp -du -H -i2,simplex viewgraphs.dvi ! 154: will take input from the second paper tray and print single sided, ! 155: even if the printer defaults to double sided (duplex) output. ! 156: Do not print a header page. ! 157: .SH FILES ! 158: .TF /usr/spool/lp/defdevice ! 159: .TP ! 160: .F /usr/spool/lp/defdevice ! 161: default printer name ! 162: .TP ! 163: .F /usr/spool/lp/devices ! 164: printer list with interface specification ! 165: .TP ! 166: .F /usr/spool/lp/process ! 167: directory of preprocessors ! 168: .TP ! 169: .F /usr/spool/lp/prob/* ! 170: where printer jobs go when things go awry ! 171: .SH SEE ALSO ! 172: .IR pr (1), ! 173: .IR blitblt (9.1), ! 174: .IR plot (1), ! 175: .IR font (6), ! 176: .IR postio (8), ! 177: .IR postscript (8) ! 178: .SH BUGS ! 179: Not all options work with all output devices. ! 180: .br ! 181: Any user can kill any job.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.