> From [EMAIL PROTECTED] Mon Jan 14 10:33:33 2002
> From: Dave Lovelace <[EMAIL PROTECTED]>
> Subject: LPRng: multiple copies (to different printers!) of large jobs
> To: [EMAIL PROTECTED]
> Date: Mon, 14 Jan 2002 12:16:38 -0500 (EST)
>
> This is kind of a weird one.
>
> We're seeing, rarely & intermittently, jobs which are queued up to one
> printer but go not only to that printer but to other printers as well.
> I can't see any reason whatever for this to happen.  The one common
> thread seems to be that these are all large jobs, in excess of 1 MB,
> but it's possible that it's happened with smaller ones & they haven't
> been reported.  This is on a RedHat 7.0 system, running LPRng-3.6.24
> (but not ifhp).  I've established pretty definitely that one single
> lpr command was issued, to one single printer (but in the two different
> cases I've looked into, the affected printers were not the same ones).
>
> The command in the case I've been looking at today was:
>     /usr/bin/lpr -h -l -#1 -P laser
> with the input coming as a stream to stdin, not from a disk file.
>
> The job printed on the printer "laser", but also on at least one other
> printer (in a totally different department, but on the same network),
> tre_hp8100.  (I have some indications that it also printed on tre_ps,
> but haven't been able to verify that as yet.)
>
> The printcap in use on this site is appended after my signature.  (Despite
> the comments, it is maintained by directly editing the file.)
>
> If anyone can shed any light, I'd really appreciate it.
>
> -- 
> - Dave Lovelace
>   [EMAIL PROTECTED]
>   [EMAIL PROTECTED]
....
> ##PRINTTOOL3## LOCAL ljet4 300x300 letter {} LaserJet4 Default {}
> asr_deskjet:\
>         :sd=/var/spool/lpd/lp:\
                    ^^^^^^^^^^^^^^^^^^^^^
>         :mx#0:\
>         :sh:\
>         :lp=asr_hp870_ps%9100:\
>         :if=/var/spool/lpd/lp/filter:\
>         :mc=0:
> ##PRINTTOOL3## LOCAL ljet4 300x300 letter {} LaserJet4 Default {}
> asr_hp4:\
>         :sd=/var/spool/lpd/lp:\
                   ^^^^^^^^^^^^^^^^^
>         :mx#0:\
>         :sh:\
>         :lp=asr_hp4_ps%9100:\
>         :if=/var/spool/lpd/lp/filter:\
>         :mc=0:

In the printcap,  change all of the 
:sd=/var/spool/lpd/same_queue_name_in_several_places
to:
        :sd=/var/spool/lpd/%P

In fact,  I suggest you do:

.common
 :sd=/var/spool/lpd/%P
 :mx=0
 :sh
 :mc=0

asr_deskjet:
 :tc=.common
 :lp=asr_hp870_ps%9100:\
 :filter=/var/spool/lpd/lp/filter:\

Note the use of 'filter' instead of 'if' and %P for setting the spool queue name.

Patrick Powell                 Astart Technologies,
[EMAIL PROTECTED]            9475 Chesapeake Drive, Suite D,
Network and System             San Diego, CA 92123
  Consulting                   858-874-6543 FAX 858-279-8424 
LPRng - Print Spooler (http://www.lprng.com)

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to