From owner-freebsd-questions Sun Dec 27 20:14:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA17262 for freebsd-questions-outgoing; Sun, 27 Dec 1998 20:09:04 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from hyperhost.net (ether.lightrealm.com [207.159.132.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA17255 for ; Sun, 27 Dec 1998 20:09:01 -0800 (PST) (envelope-from patseal@hyperhost.net) Received: from port3.annex8.radix.net (port3.annex8.radix.net [205.252.108.3]) by hyperhost.net (8.8.5/8.8.5) with ESMTP id XAA13352 for ; Sun, 27 Dec 1998 23:08:48 -0500 (EST) Date: Sun, 27 Dec 1998 23:08:40 -0500 (EST) From: Patrick Seal To: freebsd-questions@FreeBSD.ORG Subject: lpd troubles Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I posted this about a week ago and got no response so I'm posting it one more time with a better subject line. Thanks, ---------------------------------------------------------------------- Alladin GS 5.50 from ports Following the handbook I set up a filter to use with lpd. But whenever I print postscript it always appends a formfeed and an error message to the job. Error: /undefinedfilename in ( ) And it doesn't print another formfeed after this message. Filter(epif): -------------- #!/bin/sh # # Read first two characters of the file # read first_line first_two_chars=`expr "$first_line" : '\(..\)'` if [ "$first_two_chars" = "%!" ]; then /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=stcolor -sOutputFile=- - \ && exit 0 else echo "$first_line" && cat && printf "\f" && exit 0 fi exit 2 -------------- But from the command line: foobar% cat file.ps | gs -dSAFER -dNOPAUSE -q -sDEVICE=stcolor -sOutputFile=- - \ > /dev/lpt0 Works just fine. What could be the problem?? Thanks, _____________________________ Patrick Seal Hyperhost hosting and Design http://www.hyperhost.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message