The lp and lpr commands allow you to pass printer options using the -o option:. The available printer options vary depending on the printer. The standard options are described in the " Standard Printing Options " section below. Printer-specific options are also available and can be listed using the lpoptions command:. Saved options are supported in CUPS through printer instances.
Printer instances are, as their name implies, copies of a printer that have certain options associated with them. Use the lpoptions command to create a printer instance:. The remaining options are then associated with the instance instead of the main queue. For example, the following command creates a duplex instance of the LaserJet queue:.
Both the lp and lpr commands have options for printing more than one copy of a file:. Copies are normally not collated for you. Can someone give me or point me to a clear explanation about how gs, lp, lpr and cups interoperate?
CUPS is the printing system under Linux. In particular, it provides a server and clients. There exist various implementations more or less compatible with the original commands , but nowadays they should be CUPS clients. You should check that with dlocate or dpkg -S : if raspbian is like Debian, lp should be provided by cups-client and lpr should be provided by cups-bsd both binary packages are from the cups source package.
AFAIK, gs is unrelated on the client side. Your problem is quite strange since lp and lpr should behave in the same way if they are both the CUPS clients.
To solve your problem, I suggest that you look at strace output to see if there are important differences. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
You could hack it to do all sorts of things by shoving filters in the right place, but it was pretty kludgy. It also included a very limited network functionality allowing you to send jobs to a remote printer, but since the protocol was only designed with plain text in mind, it never really had provisions for determining types of documents and translating them to what the printer could understand.
Ad-hoc workarounds helped. Since the network protocol was so simple, lots and lots of network printers support it. System V designed a bigger system which allowed you to have things like printer classes, and a print job would go to the first free printer in the class. For example, if you had a machine room with three printers. It also tried to build in more formalized support for filters and things like that, but alas, it's also really, really old and not really designed for networked environments.
Nowadays, nobody really uses either system. That's just for compatibility. You can use either command you find easiest.
It states:. Neither of the commands is considered preferred or superior. Have a look at both program's man pages lp , lpr to see which options they support and use whichever one you like best! What is the difference between Os and unix? How is unix is deffrent from other oprating system? What are the socket types in UNIX? What is the difference between Windows Unix and Linux? What is UNIX commands for the compare files but stops at first occurrence of a difference? What are two traditional UNIX commands used to send print jobs to a printer?
How can you learn all of the Unix commands? What are Unix commands? Do Unix commands work in Linux? What unix command are case sensitive? Difference between shell and unix? Difference between unix and windows?
What is the difference between Unix and Cisco? Why unix commands are simples rather than complex task? What is the difference between an operating system and Unix? Difference between unix and c language? Why does Linux and unix share more commands than windows xp and unix?
What is the difference between unix command and utilities? Unix supports DOS commands or not? Study Guides. Trending Questions.
0コメント