1823249 Members
3159 Online
109648 Solutions
New Discussion юеВ

Problem with LP command

 
SOLVED
Go to solution
parolin franco
Advisor

Problem with LP command

In a server N-class with HPUX11.00 if I print a document with /usr/bin/lp -dlpr1 -n 3 , the command ignore the number of copy and printing only 1 copy of document
7 REPLIES 7
Leif Halvarsson_2
Honored Contributor

Re: Problem with LP command

Hi,
Which model script have you used when configuring this printer.
Steve Steel
Honored Contributor

Re: Problem with LP command

Hi


Be sure to use -n3 and not -n 3

lp(1) lp(1)

NAME
lp, lpalt, cancel - print/alter/cancel requests on an LP printer or
plotter

SYNOPSIS
lp [-c] [-ddest] [-m] [-nnumber] [-ooption] [-ppriority] [-s]
[-ttitle] [-w] [file ...]


The parser will see that as 1 copy


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
parolin franco
Advisor

Re: Problem with LP command

I configure the printer with :

/usr/sbin/lpshut

/usr/sbin/lpadmin -p$STAMPANTE -v/dev/null -mrmodel -orc -ob3 -ocmrcmodel -osmrsmodel -orm$LPD_S -orp$LPD_Q

/usr/sbin/lpsched

/usr/bin/enable $STAMPANTE

/usr/sbin/accept $STAMPANTE
Pete Randall
Outstanding Contributor

Re: Problem with LP command

I suspect the syntax you're using (as suggested by Steve). Make sure there is no space between the -n and the 3:

/usr/bin/lp -dlpr1 -n3


Pete

Pete
parolin franco
Advisor

Re: Problem with LP command

I use the command /usr/bin/lp -dlpr1 -n3 without space between n and 3. But the number of copy printed is 1 .
Thomas Schler_1
Trusted Contributor
Solution

Re: Problem with LP command

Parolin,

as you showed, you configure a remote printer using rmodel as the model script. Looking at the model script rmodel the command rlp is used to send the file for printing to the remote printer. rlp(1M) does not show any option similar to -n of lp(1). Therefore, I guess, it is not possible to print several copies using one lp command.
no users -- no problems
Bill Hassell
Honored Contributor

Re: Problem with LP command

You can safely assume that most options are NEVER passed to remote print servers (-n -o etc). HP-UX is a SysV flavor of lp and options only work when the remote system is also HP-UX. Windows and other flavors of Unix will not see or understand these options.


Bill Hassell, sysadmin