home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!mcsun!sun4nl!estwmz.wm.estec.esa.nl!guy
- From: guy@wmsg02.wm.estec.esa.nl (Guy Brooker)
- Subject: Re: printing: lpr-remote host -> lp-local-printer host
- Message-ID: <C0qzFx.EqH@wm.estec.esa.nl>
- Sender: news@wm.estec.esa.nl
- Organization: ESA/Estec/WMS, Noordwijk, The Netherlands
- References: <104435@netnews.upenn.edu> <1993Jan12.070806.24007@odin.corp.sgi.com>
- Date: Tue, 12 Jan 1993 15:38:21 GMT
- Lines: 74
-
- In article <1993Jan12.070806.24007@odin.corp.sgi.com>, ems@work.wpd.sgi.com (Ed Sesek) writes:
- > In <104435@netnews.upenn.edu> yates@a.chem.upenn.edu (John H. Yates) writes:
- >
- > >Now that we know SGI wants local printers set
- > >up with only lp (and not lpr), is it transparent
- > >to print to a local SGI lp printer from our 100's
- > >of Berkeley lpr /etc/printcap machines? If so,
- > >what is needed in the printcap and in the lpadmin
- > >setup?
- >
- > >Sigh. Why can't they just join the lpr world?
- >
- > Here is one suggestion I pulled off the net awhile ago:
- >
- > One idea to BSD print from a SUN on a remote SGI ATT printer is to convert
- > the SUN's BSD print job into an ATT print job on the SGI.
- >
- >
- > A quick and dirty method:
-
- Not so dirty I think ! However a couple of points of note..
-
-
- >
- > On the SGI the command 'lpr filename' resulted in the error messsage
- >
- > lpr: lp: unknown printer
- >
- > I expected that lpr would default to the default printer (lp4, see above). Is
- > this a bug ?
- >
-
- This is because the default printer is 'lp' Infact as the message is saying.
- Fix this by adding lp to the names in printcap entry.
- i.e vvvv
- vv
-
- sgi_printer_name|lp|sgi_printer_name|full_printer_name:\
- :lp=/dev/null:if=/usr/spool/lp/filter.lpr:sd:/usr/spool/lpd:
-
-
- > Print options like -h or -o"nobanner" are not supported by this approach.
- > Maybe someone has an appropriate idea.
- >
-
- Unfortunately this information is not passed to the filter program, so it
- won't be so easy. However, it is possible to make the banner page more
- useful by sending the user and remote machine name to lp.
-
- To do this change the file filter.lpr to
-
- #!/bin/csh -f
-
- lp -dsgi_printer_name -t"LPR $5 $7"
-
- Infact strictly one should parse the options for -n (user name) and -h (host)
- but this has allways worked so far. A typical set of arguments passed to the filter by lpd is as follows
-
- -w0 -l66 -i0 -n guy -h wmsg02.wm.estec.esa.nl
-
- Note also that you do not need to specify the files to send to lp.
- This is provided automatically on the standard input by lpd
-
-
- Guy
-
- ------------------------------------- Guy Brooker
- Internet: guy@wm.estec.esa.nl European Space Research and
- guy@estwm0.dnet.estec.esa.nl Technology Centre (ESTEC)
- gbrooker@estec.esa.nl
- Bitnet : gbrooker@estec SPAN : ESTERS::GUY
- Phone : +31-1719-83611 Fax : +31-1719-85617
- Mail : ESTEC JW/WMS, Keplerlaan 1, 2200AG NOORDWIJK, The Netherlands
-
-