LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-15-2017, 04:12 PM   #1
JoseKreif
Member
 
Registered: Jul 2015
Location: Iowa
Distribution: CentOS 6.6, RHEL Server release 5.5 (Tikanga)
Posts: 58

Rep: Reputation: 0
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.
 
Old 06-15-2017, 04:49 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
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.
 
Old 06-16-2017, 08:20 AM   #3
JoseKreif
Member
 
Registered: Jul 2015
Location: Iowa
Distribution: CentOS 6.6, RHEL Server release 5.5 (Tikanga)
Posts: 58

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
[SOLVED] rsync: How to use -prune-empty-dirs with the options: "+ */", "+ *.c" AND "- *"? andrew.comly Linux - Server 2 12-14-2015 06:19 AM
What are the options "Nosuid" "mode" "size" in /etc/fstab? tuxfiles.org does not help pstein Linux - Newbie 1 11-16-2012 12:58 AM
Skip "Installation Method" and "Select Partition" screens using boot options tclappsdba Linux - Newbie 1 11-26-2010 05:31 AM
How do I disable "shutdown" and "restart" options in KDE logout screen for all users? maxgsp Linux - Distributions 1 12-12-2008 03:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration