From owner-freebsd-questions Tue Dec 27 14:32:54 1994 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id OAA23155 for questions-outgoing; Tue, 27 Dec 1994 14:32:54 -0800 Received: from prosun.first.gmd.de (prosun.first.gmd.de [192.35.150.136]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id WAA23149 for ; Tue, 27 Dec 1994 22:32:50 GMT Received: from g386bsd.first.gmd.de by prosun.first.gmd.de (4.1/SMI-4.1) id AA07474; Tue, 27 Dec 94 23:31:08 +0100 Received: by g386bsd.first.gmd.de (XAA28892); Tue, 27 Dec 1994 23:33:05 +0100 From: Andreas Schulz Message-Id: <199412272233.XAA28892@g386bsd.first.gmd.de> Subject: Re: Disk config problem To: steve@khoros.unm.edu (Steven Jorgensen) Date: Tue, 27 Dec 1994 23:33:04 +0059 (MET) Cc: freebsd-questions@freebsd.org In-Reply-To: <9412272140.AA08469@borris.khoros.unm.edu> from "Steven Jorgensen" at Dec 27, 94 02:40:27 pm X-Mailer: ELM [version 2.4 PL24] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 2010 Sender: questions-owner@freebsd.org Precedence: bulk > 3. Finally, I'm trying to set up my printcap to print to my Deskjet > 560c printer. I don't have my printcap entry available right > now, but I'm pretty sure it's set up correct (I had an example to > work from.) The problem is that when I lpr a file, takes the > file does nothing. No error is printed in the printer log, and > no error is given to stderr. I'm using the apsfilter script to > preprocess the file for my printer, and I suspect that may be > the problem. However, when I send a file to this script > by itself, and redirect the output to my parallel port device, > it seems to print just fine. Any ideas what I am doing > wrong? If you'd like to see the printcap, I'll email it > tonight when I get home. I know some answers for that part :-). apsfilter-1.11 doesn't work out of the box for FreeBSD-2.0 in the moment. First thing to change is the ECHO=echo line to a ECHO=printf line. Second thing, search for the calls of "pr". It uses the "-f" in these calls, but the FreeBSD 2.0 pr only knows a "-F" flag instead. And the last is is the "-o $INDENT". If you don't need it trhow it simply out of apsfilter. It gets a default of 0 for this, but pr doesn't like a "pr -o 0" and gives only an error message for that. I am just asking in our internal list, if i can relax the posix conformance for pr for these annoying features :-). Also you may need to convert a normal ascii file from a Linefeed only file to a Cariage Return/Linefeed file before printing. I have achieved that with a pipe of the "pr" output to: " | awk 'ORS=\r\n" { print } ' And if i now would only find out, why the Canon BJ10e driver in ghostscript uses slightly wrong paper-sizes and looses some pixels on the edge, i would be completely happy :-). ATS ( ats@first.gmd.de or ats@cs.tu-berlin.de ) Andreas Schulz GMD-FIRST 12489 Berlin-Adlershof Rudower Chaussee 5 Gebaeude 13.7 Tel: +49-30-6392-1856/+49-177-2134745 Germany/Europe