From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,b8502f38f9099be2 X-Google-Attributes: gidfee84,public From: Joerg-Uwe Tessmer Subject: Re: lp and multiple copies Date: 1999/06/21 Message-ID: <376E4F40.AF8F44B8@agnld.uni-potsdam.de>#1/1 X-Deja-AN: 492114612 Content-Transfer-Encoding: 7bit References: <7k7vtr$fd8$1@nclient1-gui.server.virgin.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: University of Potsdam Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 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