I have a networked PostScript printer that speaks LPR. I have no idea
how to make it work in Plan 9.
I have edited /sys/lib/lp/devices and added:
# Lexmark X203N
lexmarkx203n - - x203n - post+600dpi generic lpdspool lpd - -
Of course I can ping x203n.
When I do
troff -ms /sys/doc/backup.ms | lp -D -dlexmarkx203n
this happens:
grep '^lexmarkx203n[ ]' /sys/lib/lp/devices
date
test -e /sys/lib/lp/log/lexmarkx203n
bind -b /sys/lib/lp/spooler /bin
lpdspool
bind -b /sys/lib/lp/process /bin
/386/bin/aux/lpdsend -dx203n -tf -Hcwfs64x -Param -
generic
cat
file /tmp/lp107693
/sys/lib/lp/process/tr2post
echo ''
awk -F, '{ n=split($0, a, ","); for (i=1;i<=n;i++) print a[i]; }'
/sys/lib/lp/process/hpost
eval /386/bin/aux/tr2post '' '' -c1 '' '' -pp '' '-P''%%Patch from lp
%%EndPatch from lp
'''
date
/386/bin/aux/tr2post -c1 -pp '-P%%Patch from lp
%%EndPatch from lp
'
awk '{ if(match("cwfs64x", $1)) {print $2; exit}}' /lib/face/.machinelist
awk '/^cwfs64x\/aram /{print $2}' /lib/face/48x48x8/.dict
awk '/^cwfs64x\/aram /{print $2}' /lib/face/48x48x4/.dict
awk '/^cwfs64x\/aram /{print $2}' /lib/face/48x48x2/.dict
awk '/^cwfs64x\/aram /{print $2}' /lib/face/48x48x1/.dict
test -f /lib/face/48x48x1/u/unknown.1
test -r /lib/face/48x48x2/u/unknown.1
cat
cat
cat
exit ''
exit
wait
rm -f /tmp/lp107693
exit
rm -f /tmp/lp107693
exit
exit 'lpdspool 107692: |lpdsend 107695: 1'
exit ''
There is no effect on the printer.
I can use this printer on Linux, BSD and OS X through LPR + generic
postscript driver (no special Lexmark drivers).
What to do?
Thanks,
--
Aram Hăvărneanu