Sponsored Content
Full Discussion: What is lpr -P ?
Top Forums Shell Programming and Scripting What is lpr -P ? Post 15233 by LivinFree on Tuesday 12th of February 2002 08:49:59 AM
Old 02-12-2002
lpr is the line-printer tool. Simply typing "lpr filename" will send filename to your printer.

It would be best for you to check your system documentation for the exact definition of that flag, but here's what mine says:
Quote:
-P Force output to a specific printer. Normally, the default print-
er is used (site dependent), or the value of the environment
variable PRINTER is used.
To check your, issue the command man lpr.

Hope this helps.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

7.1 & HP Netserver LPR

Over the past few weeks i've installed Red Hat 7.1 on an HP LPR Netserver and everytime i've installed it, I get errors on the drives and it keeps having me run the fsck command and i suspect that its the scsi drivers, everytime you reboot it gets worse and eventually will no longer boot. I've... (3 Replies)
Discussion started by: Lyghtnin
3 Replies

2. UNIX for Dummies Questions & Answers

lpr landscape

Hi Can anybody tell me how to configure my printer to handle lpr -o landscape? Or what I need to do to print a text file in landscape format using the lpr command. Thanks Monique (1 Reply)
Discussion started by: squeakywheel
1 Replies

3. UNIX for Dummies Questions & Answers

lpq, lpr and printing problems

good day! i would just like to ask for advice regarding an lp problem i have.. we currently migrated a GIS appl from sol 2.6 to sol 8 but maintained the same version of jetadmin (for the appl plotters and printers). we are able to print files on a printer but not on a plotter. the... (1 Reply)
Discussion started by: maria_iris
1 Replies

4. Solaris

bothered by bsd-gw[ID] lpr.error unknown printer (laser1)

Please help! This message is creating a space problem in my /var/adm/messages and I don't know where it's coming from. I don't have any printer on my system. (2 Replies)
Discussion started by: kicko
2 Replies

5. Shell Programming and Scripting

lpr- how to print from page to page

hi all i have file_1 which contains 66 pages and i want to print only page 1 to 3 i try to write like this lp -d name_of_printer file_1 -P 1-7 this command does not work any ideas ? (4 Replies)
Discussion started by: naamas03
4 Replies

6. UNIX for Dummies Questions & Answers

can we send fax to remote fax machine by lpr?

Hi all, Our application has to send Fax to our cutomer Fax number . I am using lpr -P faxser:test-fax <<dos format file>> I tested on our network Fax numbers . Its working fine. But when i try to send outside our network , its not sending all files are sitting in... (1 Reply)
Discussion started by: help_need
1 Replies

7. Solaris

"lpr.error] Warning: Received SIGPIPE" continuously appearing in logs

On a Solaris 8 print server we're continuously (every 2 minutes or so) getting these messages in the logs: printd: Warning: Received SIGPIPE; continuing I've applied this patch and restarted the printd daemon, but it doesn't help: #109320-22: SunOS 5.8: lp patch Does anyone have any idea what... (4 Replies)
Discussion started by: aussieos
4 Replies

8. Shell Programming and Scripting

Printing using LPR solved

Hi Guys, I am using the following command in unix for printing. pr -t -l34 "$1" | lpr -r But i was not able to see the file getting deleted. Is anything wrong with the command. ---------- Post updated at 10:56 AM ---------- Previous update was at 10:38 AM ---------- Hi... (0 Replies)
Discussion started by: Kar1234
0 Replies

9. UNIX for Beginners Questions & Answers

Print word doc using lpr command

Hi , We are trying to automate Printing the word document directly from the Server level to a Printer. We have printer registered and command I use is lp -d printername 1234.doc Even though the program completes fine, a print does not reach to the printer for word document. In... (4 Replies)
Discussion started by: PrashantTalele
4 Replies

10. UNIX for Advanced & Expert Users

LPR CUPS to Windows server and queue.

Hi everyone, Our office has a lot of printers (label & laser), and sometimes it gets quite hard to configure a new printer in CUPS as most printer manufactures does not provide drivers/ppd for CUPS/LINUX/UNIX. So we are trying to move to a Windows Print Server and run a Proof of concept. We... (2 Replies)
Discussion started by: Syed Hussaini
2 Replies
XDPR(1) 						      General Commands Manual							   XDPR(1)

NAME
xdpr - dump an X window directly to a printer SYNOPSIS
xdpr [ filename ] [ -display host:display ] [ -Pprinter ] [ -device devtype ] [ option ... ] DESCRIPTION
Xdpr uses the commands xwd, xpr, and lpr or lp to dump an X window, process it for a particular printer type, and print it out on the printer of your choice. This is the easiest way to get a printout of a window. Xdpr by default will print the largest possible represen- tation of the window on the output page. The options for xdpr are the same as those for xpr, xwd, and lpr or lp. The most commonly-used options are described below; see the manual pages for these commands for more detailed descriptions of the many options available. OPTIONS
filename Specifies a file containing a window dump (created by xwd) to be printed instead of selecting an X window. -Pprinter Specifies a printer to send the output to. If a printer name is not specified here, xdpr (really, lpr or lp) will send your output to the printer specified by the PRINTER environment variable. Be sure that type of the printer matches the type specified with the -device option. -display host:display[.screen] Normally, xdpr gets the host and display number to use from the environment variable ``DISPLAY.'' One can, however, specify them explicitly; see X(1). -device devtype Specifies the device on which the file will be printed. Currently supported: la100 Digital LA100 ljet HP LaserJet series and other monochrome PCL devices such as ThinkJet, QuietJet, RuggedWriter, HP2560 series, and HP 2930 series printers ln03 Digital LN03 pjet HP PaintJet (color mode) pjetxl HP HP PaintJet XL Color Graphics Printer (color mode) pp IBM PP3812 ps PostScript printer The default is PostScript. -device lw (LaserWriter) is equivalent to -device ps and is provided only for backwards compatibility. -help This option displays the list of options known to xdpr. Any other arguments will be passed to the xwd, xpr, and lpr or lp commands as appropriate for each. SEE ALSO
xwd(1), xpr(1), lpr(1), lp(1), xwud(1), X(1) ENVIRONMENT
DISPLAY which display to use by default. PRINTER which printer to use by default. COPYRIGHT
Copyright X Consortium See X(1) for a full statement of rights and permissions. AUTHORS
Paul Boutin, MIT Project Athena Michael R. Gretzinger, MIT Project Athena Jim Gettys, MIT Project Athena X Version 11 Release 6 XDPR(1)
All times are GMT -4. The time now is 08:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy