From: "Bernt v.Boetticher" <Bernt.Boetticher@nortel-dasa.de>
To: John Sheldrake <john.sheldrake@virgin.net>
Subject: Re: lp and multiple copies
Date: 1999/06/21 [thread overview]
Message-ID: <376E3C7C.48C45356@nortel-dasa.de> (raw)
In-Reply-To: 7k7vtr$fd8$1@nclient1-gui.server.virgin.net
John Sheldrake wrote:
>
> Hi all
>
> We've recently migrated from a Sequent box to several Dec Alphas (1200)
> running dec unix 4.0x
>
> On the sequent we could print multiple copies of reports by
> specifying lp -c num_copies -d printer filename
> worked like a charm
>
> Since we've gone to the Decs, lp accepts the -c flag but we only get 1 copy.
>
> I'm not all that hot on lp but on the sequent we had an interface file that
> handled
> all the params to lp and looped around x times for x copies
> it would have been run something like this
> interface_file param1 param2 param3..........
>
> we seem to have a similar interface file on the dec but it looks to receive
> its input from stdin
> and it doesn't have any multiple copy mechanism
>
> Can anybody help?
Unfortunately only a recipe in German. But the essentialls are English
anyway.
Digital UNIX: alle Versionen
PROBLEM
Beim Versuch, mehrere Kopien eines Dokumentes mit der Option
lpr -Pdrucker -#3
auf einen Remote Drucker zu erzeugen, wird nur eine Kopie
gedruckt.
LOESUNG
Viele Netzwerkdruckerkarten (z.B. HP JetDirect) kennen diese
Option nicht.
Erzeugen Sie einen "pass-through" Eintrag in der /etc/printcap, der
auf den eigentlichen Eintrag des remote Druckers verweist.
Hier ein Beispiel fuer einen remote Drucker:
lp5|5|dot matrix printer:\
:lf=/usr/adm/lp5err:\
:lp=:\
:rm=tom.digital.com:\
:rp=lp2:\
:sd=/usr/spool/lpd5:
Falls Sie nun mit dem Befehl
lpr -#2 -P5 filename
zwei Kopien an diesen Drucker senden wollen, wird nur eine Kopie ge-
druckt. Die Netzwerkkarte / Printserver kann die Option "#2" nicht
interpretieren.
Erzeugen Sie deshalb einen weiteren Eintrag in der /etc/printcap:
lp8|8|pass-through entry:\
:lp=/dev/null:\
:mx#0:\
:of=/usr/lbin/passtolp5:\
:sd=/usr/spool/lpd8:
(Erzeugen sie evtl. das Spoolverzeichnis /usr/spool/lpd8 per Hand)
Generieren Sie die Datei /usr/lbin/passtolp5 mit folgendem Eintrag.
Aendern Sie die Filepermissions auf 755.
#!/bin/csh -f
/bin/cat | lpr -Plp5
Der Befehl
# lpr -#2 -P8 filename
druckt nun wie gewuenscht 2 Kopien auf den Drucker.
prev parent reply other threads:[~1999-06-21 4:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-16 4:00 lp and multiple copies John Sheldrake
1999-06-16 4:00 ` Joerg-Uwe Tessmer
1999-06-16 4:00 ` Stephen Kerr
1999-06-21 4:00 ` Joerg-Uwe Tessmer
1999-06-21 4:00 ` Bernt v.Boetticher [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox