home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / database / ingres / 1188 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  2.0 KB

  1. Path: sparky!uunet!decwrl!netcomsv!cmdsf!anders
  2. From: anders@cmdsf.UUCP (Anders Nicolausson)
  3. Newsgroups: comp.databases.ingres
  4. Subject: Re: Printer Problems
  5. Summary: A fix
  6. Message-ID: <14@cmdsf.UUCP>
  7. Date: 20 Aug 92 16:23:04 GMT
  8. References: <1992Aug19.192247.16118@usenet.ins.cwru.edu>
  9. Organization: Construction Market Data, Inc.
  10. Lines: 44
  11.  
  12. In article <1992Aug19.192247.16118@usenet.ins.cwru.edu>, efk@po.CWRU.Edu (Edward F. Kerekes) writes:
  13. > I need some help or suggestions.  We just installed Ingres 6.4 on a machine
  14. > running SCO Unix.  Everything is fine and dandy except I can't send reports
  15. > directly to the printer.  I tried the report writer, inside applications, and
  16. > print screen in the RBF.  The error I get E_RW13ED tells me there is a 
  17. > problem printing the file /usr/ingres/file and that the error is
  18. > caused by an invalid ptinter or system error.  I can print in the Unix
  19. > environment.  I searched the manuals and could not find a list of printers
  20. > or where I can change the default printer or where I set the default printer
  21. > to begin with. Has anyone else ever had this problem?  I tried changing
  22. > ING_PRINT locally and this had no effect.
  23. > Any help or suggestions is greatly appreciated.
  24. > -- 
  25. >     Edward Kerekes   Case Western Reserve University,  Pediatrics-CMIS
  26. > "Some Days You get the bear,
  27. >  Some Days the bear gets you."
  28. >                 efk@po.cwru.edu
  29.  
  30. I have a quick solution for you. INGRES uses, apparently hardcoded(!),
  31. /usr/bin/lpr to print, so you have to replace your existing lpr
  32. with a script as follows:
  33. -------------------------------------------------------------
  34.  
  35. :
  36. #    /usr/bin/lpr
  37. #
  38. #    This script is a fix for handling INGRES printing
  39. #
  40.  
  41. #    Replace lpr-style option arguments with equivalent
  42. #    lp options
  43. options=`echo $* | sed -e "s/-P/-d/; s/-#/-n/; s/-J/-t/"`
  44.  
  45. lp -ow $options
  46.  
  47. -------------------------------------------------------------
  48.  
  49. This will work fine, as long as you don't need to explicitly
  50. change the lp options, in which case you have to hack some more.
  51.  
  52. Anders Nicolausson
  53. CMD, San Francisco
  54.