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