How can I print from Unix to Wfwg!!!...
Eduardo Pimenta Marrocos e Freitas
epimenta at bestway.com.br
Thu Oct 23 19:34:02 GMT 1997
On Thu, 23 Oct 97 16:18:05 PST, kunwar.asif wrote, among other things:
> I am using Samba 1.9.17p2 on Solaris2.5.1 running on Sun sparc-20
> servers. Our print servers are running WfWg. We want to print from
> Unix to Wfwg servers. I have tested print command of smbclient on a
> printer attached with a NT box and it works fine.
Does it? I've just sweated a lot to make a smbclient connection to a
NT printer. While Wfwg does accept connections using
smbclient \\\\server\\printer -N -P,
I discovered that NT needs a -U option, and a valid NT user ID, as in
smbclient \\\\serverNT\\printer -N -U NTUSER%passwd -P.
Spent the whole morning on that.
> But I want to print not only from command line but also from
> application (e.g Answer book, Visual works, etc ) to WfWg. So I want
> to know the exact steps which I should take to install printing .
The procedure will change according to how the application does
print files, but in most cases you will need to find where is it (probably a
"lp" command in some configuration file) and replace it with a call to a
script, for example "smbprint".
I've written a smbprint script, and am sending it below. I think it's
quite self-understandable, but feel free to ask any questions.
----------- Begin of smbprint script:
/usr/local/bin/smbclient \\\\NTprintserver\\hp -U printer%printer -N -P 1>/dev/null <<EOF
----------- End of smbprint script.
Eduardo Pimenta (no signature yet, maybe will never have one)
More information about the samba