LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-16-2008, 06:43 AM   #1
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Rep: Reputation: 30
printer command lp options -o


Have anyone ever use lp to print? Anyone know if it support printing multipages like 2 pages to 1
 
Old 03-16-2008, 08:07 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Yes, been using lp for about 30 years or so. Yes, it'll support multiple pages... but, much easier, a2ps (look at at /etc/a2ps.cfg and set the Medium (paper) value, if I remember correctly it defaults to A4).

If you've got CUPS set up for your printer(s) (so all the features are available), then lp and a2ps will work just fine.
 
Old 03-16-2008, 10:13 PM   #3
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Original Poster
Rep: Reputation: 30
I got CUPS running, but still can not find what I need. The a2ps can generate ps type file.

My questions is, how to print multi pages (like 2) into a single page.

This feature is available in a document viewer program in Debian, how about command lpr and lp ?
 
Old 03-17-2008, 03:31 PM   #4
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
CUPS should be able to handle output from a2ps, converting from PostScript to your printer (when you have CUPS installed you have a different version of lp).

An easy test is to
Code:
echo "Hello, world!" | a2ps
and see what you get.
 
Old 03-17-2008, 04:11 PM   #5
prad77
Member
 
Registered: Mar 2008
Posts: 101

Rep: Reputation: 15
this should help...

psnup -2 | lpr

See man psnup for more.

Fedora Development

Last edited by prad77; 04-17-2008 at 04:10 AM.
 
Old 09-19-2014, 10:04 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,459

Rep: Reputation: 6216Reputation: 6216Reputation: 6216Reputation: 6216Reputation: 6216Reputation: 6216Reputation: 6216Reputation: 6216Reputation: 6216Reputation: 6216Reputation: 6216
Have you tried the number-up option.

http://www.cups.org/documentation.php/options.html
 
Old 09-20-2014, 06:57 AM   #7
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,196

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
For some reason this fairly long time member fhleung is necroposting in a considerable number of threads. In threads he posted before. Posts are incoherent sometimes. Given the number of posts it cannot be a newly created spam bot. But it looks a lot like a hijacked identity.

Reported for attention of the moderators.

jlinkels
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
host command options ZAMO Linux - Networking 13 12-30-2008 03:04 AM
CUPS does not send printer options kvtournh Linux - Software 0 11-17-2006 04:51 AM
Command Line Options AUSanders79 Linux - Software 8 03-10-2005 11:24 AM
greyed out backend options when adding printer (CUPS) NewConvertLX Linux - Hardware 1 11-19-2004 06:27 PM
Wget command options help??? tekhead2 Linux - Software 1 06-23-2004 07:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:18 AM.

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