[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Printing with HP694C
Hi,
I'm trying to print from X on my HP printer (694C).
I can print text by using a shell terminal and :
gawk </root/test.html '{print $0 "\r";next;}' > /dev/lp1
Which prints well and I'll be happy if someone can translate it to plain
english for me.
and
cat /root/test.html > /dev/lp1
Using cat I get :
aaaaaa
aaaaaaa
aaaaaa
etc.
but I cant get anything X'ish to print.
Usually X applications just ignores me and do nothing and Netscape
gives a message saying "no princap for printer ps". As far as I can see
I do have a printcap entry for ps: printer.
My filter file is located in /var/spool/lpd/ps/ and it reads :
#!/bin/sh
DEVICE=djet500
RESOLUTION=300x300
PAPERSIZE=a4
SENDEOF=
if [ "PAPERSIZE" = "a4" ]; then
T=A$
else
T=US
fi
nenscript -T$T -ZB -p- |
if [ "$DEVICE" = "Poscript" ]; then
cat -
else
gs - q -sDEVICE=$DEVICE \
-r$RESOLUTION \
-SPAPERSIZE=$PAPERSIZE \
-dNOPAUSE \
-dSAFER \
-s OutputFile=- -
fi
if [ "$SENEOF" != "" ]; then
printf "\004"
fi
exit 0
My printcap is located in \etc\ and it looks like this :
ps:\
:sd=/var/spool/lpd/ps:\
:mx#0:\
:lp=/dev/lp1:\
:if=/var/spool/lpd/ps/filter:\
:sh:
lp:\
:sd=/var/spool/lpd/lp:\
:mx#0:
:lp=/dev/lp1:\
:sh:
Anybody has any ideas ?
Tanks
Erez
--
/'^'\
( o o )
-oOOO--(_)--OOOo--------------------------------------------------
Erez Boym
57 Shkedim St', P.O.Box 4480.
K' Tivon, 36501
, ISRAEL
Fax - +972 4 8316876
ICQ# - 3015118
Email home: ehboym@internet-zahav.net
work: erezb@elbit.co.il
www - http://www.geocities.com/thetropics/6045/index.html
.oooO
( ) Oooo.
-----\ (----( )-------------------------------------------------
\_) ) /
(_/