Sean,
I too print from a Red Hat Linux box to a Windows box (Red Hat is 8.0 and
Windows is 98SE, but shouldn't matter).
One thing, if the alias for the machine in /etc/hosts of the Linux box and
the netbios name of the Windows machine are the same, it makes life easier.
Be sure that you have created a 'Share' for the printer on the Windows box.
Remember the name of the share.
The command looks like:
smbclient //alias name (or netbios name)/share name
When you get the smb prompt, enter:
print your-file-name
When complete, enter:
quit
Thanks,
Gene Poole
[EMAIL PROTECTED]
On Sun, 10 Aug 2003 20:20:13 -0500
"Bob" <[EMAIL PROTECTED]> wrote:
> Sean,
>
> I don't think this is a firewall issue because I was able to get a
response
> when issuing:
> smbclient //XP_computer_IPaddress/print
>
> The response from the XP machine was:
>
> Domain=[LAN] os=[Windows 5.1] Server=[Windows 2000 LAN Manager]
> tree connect failed:NT_STATUS_BAD_NETWORK_NAME
>
> This sounds like an XP issue, doesn't it?
>
> Bob
>
Hi Bob,
Ok, There is a dependence on ip name resolution that is being
reported here. You need to make an entry in your /etc/hosts file
for the IP address of your XP machine. Also you need to match
the name you give to this IP to be the same name as the computer
name you've assigned within Windows XP.
I seem to recall that the SMB protocol does imbed the machine name
in each request itself so getting the packet to the server isn't enough.
It must also arrive with the correct machine name.
After you update your /etc/hosts file it should work for you.
There is a command line option of smbclient that accomplishes the
same thing but the best way to do it is to update your hosts file.
Good Luck,
Sean
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list