From: Joerg-Uwe Tessmer <jut@agnld.uni-potsdam.de>
Subject: Re: lp and multiple copies
Date: 1999/06/21 [thread overview]
Message-ID: <376E4F40.AF8F44B8@agnld.uni-potsdam.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?
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
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 ` Bernt v.Boetticher
1999-06-21 4:00 ` Joerg-Uwe Tessmer [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