* lp and multiple copies
@ 1999-06-16 4:00 John Sheldrake
1999-06-16 4:00 ` Joerg-Uwe Tessmer
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: John Sheldrake @ 1999-06-16 4:00 UTC (permalink / raw)
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?
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: lp and multiple copies
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
2 siblings, 1 reply; 5+ messages in thread
From: Joerg-Uwe Tessmer @ 1999-06-16 4:00 UTC (permalink / raw)
Hallo,
John Sheldrake wrote:
> Hi all
> ...
>
> 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.
Use these command:
lp -n copys -d printer or
lpr -Pprinter -# copys
Hope it helps.
Joerg-Uwe
--
Joerg-Uwe Tessmer Universitaet Potsdam
Tel.: +49+331-9771613 Institut fuer Physik
Fax.: +49+331-9771142 Lehrstuhl Nichtlineare Dynamik
e-mail:jut@agnld.uni-potsdam.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: lp and multiple copies
1999-06-16 4:00 lp and multiple copies John Sheldrake
1999-06-16 4:00 ` Joerg-Uwe Tessmer
@ 1999-06-21 4:00 ` Joerg-Uwe Tessmer
1999-06-21 4:00 ` Bernt v.Boetticher
2 siblings, 0 replies; 5+ messages in thread
From: Joerg-Uwe Tessmer @ 1999-06-21 4:00 UTC (permalink / raw)
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?
My 2nd method is:
1. HP JETDIRECT network adapters use the tcp port 9100.
Create in yor /etc/services file:
jdp_9100 9100/tcp # Added for HP-Printer JetDirect cards
2. Edit the /etc/hosts file:
123.45.67.89 my_printer # printer on JETDIRECT
3. Edit your /etc/printcap file:
my_printer:\
:ct=tcp:\
:if=/usr/lbin/ps_level1of:\
:lf=/var/spool/lpd/my_printer/log:\
:lp=@my_printer/jdp_9100:\
:mx#0:\
:pl#72:\
:pw#80:\
:rw:\
:of=/usr/lbin/ps_level1of:\
:sd=/var/spool/lpd/my_printer:\
:sh:
4. Create the /var/spool/lpd/my_printer
Thats all, and its work fine. All lpr Kommands eg. -#n or -K2 ... are
supported.
Joerg-Uwe
--
Joerg-Uwe Tessmer Universitaet Potsdam
Tel.: +49+331-9771613 Institut fuer Physik
Fax.: +49+331-9771142 Lehrstuhl Nichtlineare Dynamik
e-mail:jut@agnld.uni-potsdam.de
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: lp and multiple copies
1999-06-16 4:00 lp and multiple copies John Sheldrake
1999-06-16 4:00 ` Joerg-Uwe Tessmer
1999-06-21 4:00 ` Joerg-Uwe Tessmer
@ 1999-06-21 4:00 ` Bernt v.Boetticher
2 siblings, 0 replies; 5+ messages in thread
From: Bernt v.Boetticher @ 1999-06-21 4:00 UTC (permalink / raw)
To: John Sheldrake
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1999-06-21 4:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox