LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux "lp" options. (https://www.linuxquestions.org/questions/linux-newbie-8/linux-lp-options-4175607991/)

JoseKreif 06-15-2017 04:12 PM

Linux "lp" options.
 
Can someone help me understand what the options in this statement mean.

Code:

echo "Hello World" | lp -d laser1 -or12 -oport -ofp16 -ovsi12 -olm8
So the options are: r, port, fp, vsi, lm.

I assume port is for portrait.

When I do a
Code:

man lp
I see no examples of any of these options.

michaelk 06-15-2017 04:49 PM

Curious where you saw that command? The command is based on LPR/LPD daemon days which has been replaced by cups many years ago.

cups replaced lpr and lp with its own version which is why the man pages are different. I assume the question is in reference to CentOS or other current linux distributions. I don't remember what all the options mean but it would depend on the make/model of printer.

With cups the options are typically specified as -o some_option=setting.

JoseKreif 06-16-2017 08:20 AM

Quote:

Originally Posted by michaelk (Post 5723185)
Curious where you saw that command? The command is based on LPR/LPD daemon days which has been replaced by cups many years ago.


Although I can enter the command with all those options and a terminal, and get working results, I did first discover it in our database. We have printers and options in a table so reports can be printed automatically with proper formatting. I have not seen these "options" before, and I have not been successful at locating what they refer to.

We are currently using RHEL, but if my memory is correct, our database used to run on a Unix server before Linux started becoming available.


All times are GMT -5. The time now is 07:51 PM.