lpr -Php2600 -#2 ~/testpage.ps VS. lpr -Php2600 -o Copies=2 ~/testpage.ps

rickr.mn.rr rickr at mn.rr.com
Tue Nov 21 09:18:15 PST 2006


> > > rickr.mn.rr wrote:
> > > >> rickr.mn.rr wrote:
> > > >>> $ lpr -Php2600 -o Copies=2 ~/testpage.ps
> > > >>> works.  (testpage.ps is the Redhat testpage)
> > > >>>
> > > >>> $ lpr -Php2600 -#2 ~/testpage.ps
> > > >>> does not work!!!!
> > > >>>
> > > >>> What is the difference?
> > > >> Copies (big C) is not a valid copies option - it is probably getting
> > > >> picked up by your driver.
> > > >>
> > > >> -#2 passes the number of copies through the filter system and is the
> > > >> correct way to specify the copy count for CUPS-based filters.
> > > >>
> > > >> What driver are you using with your printer?
> > > >
> > > > LPRng also works with -#2
> > > >
> > > > $ lpr -Php2600 -#2 ~/testpage.ps
> > > >
> > > > Only CUPS does not work.  foo2hp is the driver.
> > >
> > > Does the testpage.ps file include a "/#copies" or "Copies" definition
> > > in it?
> >
> > No.

$ gv testpage.ps
works (1 page) on the display.

After doing "lpr -#2" it is transformed by CUPS into:

%!PS-Adobe-3.0
%%Title: testpage.fig
%%Creator: fig2dev Version 3.2.3 Patchlevel
%%CreationDate: Wed Aug 30 15:28:56 2000
%%For: prospector at porky.devel.redhat.com ()
%%Orientation: Portrait
%%BeginProlog
%%EndProlog
%%BeginSetup
%%IncludeFeature: *PageSize Letter
[{
%% Code for writing CUPS accounting tags on standard error
[snip]

and gv /tmp/cups.ps displays 2 copies but both are BLANK!






More information about the cups mailing list