Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Dec 1998 23:08:40 -0500 (EST)
From:      Patrick Seal <patseal@hyperhost.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   lpd troubles
Message-ID:  <Pine.BSF.4.05.9812272305080.6466-100000@foobar.hyperhost.net>

next in thread | raw e-mail | index | archive | help

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
<patseal@hyperhost.net>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9812272305080.6466-100000>