magicfilter and smbprint together?
-----BEGIN PGP SIGNED MESSAGE-----
I have recently figured out how to print from my debian machine to a win95
printer using lpr and the input filter smbprint as follows:
rlp|Remote printer entry:\
:cm=HPLIII printer in IIGR 301:\
:lp=/dev/rlp:\
:sd=/var/spool/lpd/remote:\
:af=/var/log/rlp-acct:\
:lf=/var/log/rlp-errs:\
:mx#0:\
:if=/usr/local/bin/smbprint:\
:sh:
However, I also would like to use the ljet3-filter supplied with
magicfilter. I read in the Printing-HOWTO about double queueing but I
thought the following solution would be simpler (although it doesn't seem
to work:)) - put the ljet3-filter inside of the smbprint script (note that
I have an extremely simple smbprint script that is similar to the one
supplied with samba, but it has the win95 info hard-coded)
- ------------------old smbprint:
#!/bin/sh -x
(
# NOTE You may wish to add the line `echo translate' if you want automatic
# CR/LF translation when printing.
echo translate
echo "print -"
cat
) | /usr/bin/smbclient "\\\\MAIN\\HPLIII" -N -P > /var/log/smb-print.log
- ------------------new smbprint:
#!/bin/sh -x
(
# NOTE You may wish to add the line `echo translate' if you want automatic
# CR/LF translation when printing.
echo translate
echo "print -"
cat
) | /usr/sbin/ljet3-filter | /usr/bin/smbclient "\\\\MAIN\\HPLIII" -N -P > /var/log/smb-print.log
I thought this would work perfectly, but I'm wrong as when I tried
lpr -Prlp test.dvi
the printer down the hall started pumping out pages with junk all over
them. Am I missing something or is there a better correct way to do this?
Cheers, Colin
- --
Colin R. Telmer, Institute of Intergovernmental Relations
School of Policy Studies, Queen's University
Kingston, Ontario, Canada, K7L-3N6
(613)545-6000x4219 telmerco@qed.econ.queensu.ca
PGP Fingerprint = 09 E9 DA 66 9C EE 33 DC B8 3B 97 0E 01 BC EC 0B
PGP Public Key at <URL:http://terrapin.econ.queensu.ca>
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
iQCVAwUBM3TyJhhhzOJJktw1AQFqlgP+Pn3qrqyxOC4hPo63Dxs35kyiH9HBnBp+
bwQ1Og/KlpPsXvHuR+iqNOP9IqIBB0mMDoOdC08b1YQLrJecsQN0U70bMppz4GWv
UTaKiUQdDFFuqkFc/Obx5An9YJIW74tpf1EHjRB+m5FxwG0x6+61rBAn1aHuWrAc
s7Qq8FjoALc=
=4Yg/
-----END PGP SIGNATURE-----
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: