OK,
In my little LPRng torture chamber, I got it printing
lprng->lprng->parallel (after realising that magicfilter was dumping
the job to a non-existent program, sigh)
Next is lprng->Win95->parallel, got that fixed too, but the HOWTO has a
bug, or the way that smbclient works has changed.
Section 11.8 says a few things and then gives this.
(
# echo translate
echo "print -"
/bin/cat
) | /usr/local/bin/smbclient "\\\\$server\\$service" \
"$password" -U "$server" -N -P 1>&2
Tried it, it doesn't work (says it is printing 0 bytes)
Strangely, echo foo | /usr/local/lib/smbprint fails but if you type
/usr/local/lib/smbprint
and then type stuff it works.
Anyhow, there is now the -c flag in smbclient, so chaning the line to
/bin/cat | /usr/bin/smbclient "\\\\$server\\$service" "$password" -U "$server" -N -P
-c 'print -' 1>&2
Makes it happy. It seems lprngtool uses something like this too.
- Craig
--
Craig Small VK2XLZ GnuPG:1C1B D893 1418 2AF4 45EE 95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/ <[EMAIL PROTECTED]>
MIEEE <[EMAIL PROTECTED]> Debian developer <[EMAIL PROTECTED]>
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------