Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!Germany.EU.net!Frankfurt.Germany.EU.net!news.maz.net!cls.net!menetekel.kiel.org!tusia!macko From: macko@tusia.kiel.org (Maciej Wiatr) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Filter for HPDeskJet500C wanted Message-ID: <9ckBPD1w165w@tusia.kiel.org> Date: Mon, 10 Jun 96 20:11:07 PDT Organization: TimeSpace Private Lines: 59 Hallo, I have fought with my printer for some days and reached nothing. After reading the printing.sgml file I installed the filter file, which is given there as one for HPDeskJet500 series : #!/bin/sh # # ifhp - Print Ghostscript-simulated PostScript on a DesJet 500 # Installed in /usr/local/libexec/hpif # # Treat LF as CR+LF: # printf "\033&ero;k2G" || exit 2 # # Read first two characters of the file # read first_line first_two_chars=`expr "$first_line" : '\(..\)'` if [ "$first_two_chars" = "%!" ]; then # # It's PostScript; use Ghostscript to scan-convert and print it # /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=djet500 -sOutputFile=- - \ ero;ero; exit 0 else # # Plain text or HP/PCL, so just print it directly; print a form # at the end to eject the last page. # echo $first_line &ero;&ero; cat &ero;&ero; printf "\f" &ero;&ero; exit 2 fi exit 2 Every time I want to print I get the massage in the error file : ero : not found or something else. Is there anybody here, who has a proper filter file for the mentioned printer (ASCII and Postscript) and could send me a copy of it ? Maybe you have some hints, how to change the file from above to get a right result. Let me know, please. Regards _____________________________________________________________ ,, /\ /\ // //// // // ///// macko@tusia.kiel.org //\/\\ //\\ // //// // // ( Maciej Wiatr ) // \\ // \\//// // \\ //// Tel. : 0431/723746 _____________________________________________________________