home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sgi / 18719 < prev    next >
Encoding:
Text File  |  1993-01-12  |  2.9 KB  |  86 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!mcsun!sun4nl!estwmz.wm.estec.esa.nl!guy
  3. From: guy@wmsg02.wm.estec.esa.nl (Guy Brooker)
  4. Subject: Re: printing: lpr-remote host -> lp-local-printer host
  5. Message-ID: <C0qzFx.EqH@wm.estec.esa.nl>
  6. Sender: news@wm.estec.esa.nl
  7. Organization: ESA/Estec/WMS, Noordwijk, The Netherlands
  8. References: <104435@netnews.upenn.edu> <1993Jan12.070806.24007@odin.corp.sgi.com>
  9. Date: Tue, 12 Jan 1993 15:38:21 GMT
  10. Lines: 74
  11.  
  12. In article <1993Jan12.070806.24007@odin.corp.sgi.com>, ems@work.wpd.sgi.com (Ed Sesek) writes:
  13.  > In <104435@netnews.upenn.edu> yates@a.chem.upenn.edu (John H. Yates) writes:
  14.  > 
  15.  > >Now that we know SGI wants local printers set
  16.  > >up with only lp (and not lpr), is it transparent
  17.  > >to print to a local SGI lp printer from our 100's
  18.  > >of Berkeley lpr /etc/printcap machines? If so,
  19.  > >what is needed in the printcap and in the lpadmin
  20.  > >setup?
  21.  > 
  22.  > >Sigh. Why can't they just join the lpr world?
  23.  > 
  24.  > Here is one suggestion I pulled off the net awhile ago:
  25.  > 
  26.  > One idea to BSD print from a SUN on a remote SGI ATT printer is to convert 
  27.  > the SUN's BSD print job into an ATT print job on the SGI.
  28.  > 
  29.  > 
  30.  > A quick and dirty method:
  31.  
  32. Not so dirty I think ! However a couple of points of note..
  33.  
  34.  
  35.  > 
  36.  > On the SGI the command 'lpr filename' resulted in the error messsage
  37.  > 
  38.  >         lpr: lp: unknown printer
  39.  > 
  40.  > I expected that lpr would default to the default printer (lp4, see above). Is
  41.  > this a bug ?
  42.  > 
  43.  
  44. This is because the default printer is 'lp' Infact as the message is saying.
  45. Fix this by adding lp to the names in printcap entry.
  46. i.e                       vvvv
  47.                            vv
  48.  
  49.        sgi_printer_name|lp|sgi_printer_name|full_printer_name:\
  50.          :lp=/dev/null:if=/usr/spool/lp/filter.lpr:sd:/usr/spool/lpd:
  51.  
  52.  
  53.  > Print options like -h or -o"nobanner" are not supported by this approach.
  54.  > Maybe someone has an appropriate idea.
  55.  > 
  56.  
  57. Unfortunately this information is not passed to the filter program, so it
  58. won't be so easy. However, it is possible to make the banner page more
  59. useful by sending the user and remote machine name to lp.
  60.  
  61. To do this change the file filter.lpr to
  62.  
  63.        #!/bin/csh -f
  64.  
  65.        lp -dsgi_printer_name -t"LPR $5 $7"
  66.  
  67. Infact strictly one should parse the options for -n (user name) and -h (host)
  68. but this has allways worked so far. A typical set of arguments passed to the filter by lpd is as follows
  69.  
  70. -w0 -l66 -i0 -n guy -h wmsg02.wm.estec.esa.nl
  71.  
  72. Note also that you do not need to specify the files to send to lp.
  73. This is provided automatically on the standard input by lpd
  74.  
  75.  
  76. Guy
  77.  
  78. -------------------------------------            Guy Brooker
  79. Internet: guy@wm.estec.esa.nl                European Space Research and
  80.       guy@estwm0.dnet.estec.esa.nl        Technology Centre (ESTEC)
  81.       gbrooker@estec.esa.nl
  82. Bitnet  : gbrooker@estec        SPAN    : ESTERS::GUY
  83. Phone    : +31-1719-83611        Fax    : +31-1719-85617
  84. Mail    : ESTEC JW/WMS, Keplerlaan 1, 2200AG NOORDWIJK, The Netherlands
  85.  
  86.