home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sgi / 18698 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  3.8 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!ames!olivea!sgigate!odin!work!ems
  2. From: ems@work.wpd.sgi.com (Ed Sesek)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Re: printing: lpr-remote host -> lp-local-printer host
  5. Message-ID: <1993Jan12.070806.24007@odin.corp.sgi.com>
  6. Date: 12 Jan 93 07:08:06 GMT
  7. References: <104435@netnews.upenn.edu>
  8. Sender: news@odin.corp.sgi.com (Net News)
  9. Organization: Silicon Graphics, Inc.  Mountain View, CA
  10. Lines: 106
  11. Nntp-Posting-Host: work.wpd.sgi.com
  12.  
  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. My environment:
  30.  
  31.     SUN Sparcstation1 running OS 4.1.1
  32.  
  33.     SGI Indigo      running IRIX 4.0
  34.               HP Laserjet III Si connected to the parallel
  35.                  port and configured as parallel printer lp4
  36.                  by means of the printer tool.
  37.               Default printer set to lp4.
  38.  
  39.     /usr/etc/lpd running as verified by ps -ef
  40.     /usr/spool/lpd existing
  41.     Network connection between both machines operational
  42.  
  43. A quick and dirty method:
  44.  
  45.     - On the SUN add to the /etc/printcap file the following
  46.       entry:
  47.  
  48.       sun_printer_name|sun_printer_name|SGINetworkPrinter:\
  49.         :lp=:rm=remhost:rp=sgi_printer_name:sd=/usr/spool/lw:
  50.  
  51.     - On the SGI add to the /etc/printcap file the following
  52.       entry:
  53.  
  54.       sgi_printer_name|sgi_printer_name|full_printer_name:\
  55.         :lp=/dev/null:if=/usr/spool/lp/filter.lpr:sd:/usr/spool/lpd:
  56.  
  57.     - On the SGI create the file /usr/spool/lp/filter.lpr with
  58.       mode/owner/group/name
  59.  
  60.         -rwxr-xr-x root sys    filter.lpr
  61.  
  62.       and containing the following 3 lines (nothing else):
  63.  
  64.       #!/bin/csh -f
  65.  
  66.       lp -dsgi_printer_name < d*
  67.  
  68. remhost:       The SGI's hostname. In my environment it is not a fully
  69.            qualified domain name but simply 'bflsgg'.
  70.  
  71. sun_printer_name:  The (network) BSD printer name used on the SUN for network
  72.            printing on an ATT printer installed on the SGI. In my 
  73.            environment this printer name is lp4.
  74.  
  75. sgi_printer_name:  The name of the ATT printer installed on the SGI and to 
  76.            be employed as network printer by the SUN. In my 
  77.            environment this printer name is lp4.
  78.  
  79. full_printer_name: The name describing the physical printer. In my environment
  80.            the name is 'HPLaserjetIIISi'.
  81.  
  82. I choose identical printer names on both the SUN and the SGI so people can
  83. correlate the printer name with the physical device irrespective of their
  84. operating position on the SUN or the SGI.
  85.  
  86. The following commands have been checked-out successfully by an 'ordinary' 
  87. user:
  88.  
  89.     On the SUN:    lp -dlp4 filename
  90.             lpr -Plp4 filename
  91.             lpr -Plp4 -#2 filename
  92.  
  93.     On the SGI:    lp -dlp4 < filename
  94.             lpr -Plp4 filename
  95.  
  96. On the SGI the command 'lpr filename' resulted in the error messsage
  97.  
  98.         lpr: lp: unknown printer
  99.  
  100. I expected that lpr would default to the default printer (lp4, see above). Is
  101. this a bug ?
  102.  
  103. Print options like -h or -o"nobanner" are not supported by this approach.
  104. Maybe someone has an appropriate idea.
  105.  
  106. Best regards.
  107.  
  108. Ralf Beyer
  109.  
  110. P.S.: I'm not an expert but the approach does its job.
  111.  
  112. -----------------------------------------------------------------------------
  113. Ralf Beyer                | 
  114. German Aerospace Research Establishment | Phone:    (0531) 395-2530  
  115. Institute for Flight Guidance        | Fax:      (0531) 395-2550
  116. Flughafen                | BITNET:   fl17@dlrvmbs.bitnet 
  117. 3300 Braunschweig, Fed. Rep. of Germany    | Internet: beyer@bflsgu.fl.bs.dlr.de
  118. -----------------------------------------------------------------------------
  119.