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!news.hawaii.edu!ames!purdue!lerc.nasa.gov!magnus.acs.ohio-state.edu!math.ohio-state.edu!howland.reston.ans.net!news.starnet.net!wupost!news From: support@marktwain.com (Support) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Please help me debug printcap with DeskJet 500 Date: Thu, 07 Dec 95 22:57:10 GMT Organization: Mark Twain Bank Lines: 40 Message-ID: <4a7rg6$a6s_005@marktwain.com> NNTP-Posting-Host: 199.217.176.2 X-Newsreader: News Xpress Version 1.0 Beta #4 The printer will not print with the filter installed. It works without the filter, but in "stair mode" only :-) I get this message in my lpd-errs: Dec 7 15:31:44 support lpd[103]: restarted cat: 199: No such file or directory cat: printf: No such file or directory cat: \f: No such file or directory I am using this filter for my HP printers, as per the FreeBSD handbook: #!/bin/sh # # hpif - Simple text input filter for lpd for HP-PCL based printers # Installed in /usr/local/libexec/hpif # # Simply copies stdin to stdout. Ignores all filter arguments. # Tells printer to treat LF as CR+LF. Writes a form feed character # after printing job. printf "\033&k2G" && cat $$ printf "\f" && exit 0 exit 2 My printcap is as follows: # @(#)printcap 5.3 (Berkeley) 6/30/90 #lp|local line printer:\ # :lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs: snail|line|lp|HP DeskJet 500:\ :sh:sd=/var/spool/snail:\ :lp=/dev/lpt0:\ :if=/usr/local/libexec/hpif:\ :lf=/var/log/lpd-errs: I know that its probably something stupid and would appreciate your help. Thanks,