smbprint (or: print to nt with smbclient)
Angie.Cabrera at LogixCom.com
Angie.Cabrera at LogixCom.com
Tue May 8 00:01:35 GMT 2001
I am having the same issue. I am running Linux Red Hat V7.0 and Samba
2.2.0. I am simply trying to print to a printer on an NT server.
I have tried :
cat file | smbclient \\\\server\printer -U user%password
But this does not work it gets me to the smb prompt and interprets the first
word of my file as an undefined smb command.
I have tried:
cat file | smbclient \\\\server\printer -Uuser%password -c 'print -'
This does the same thing.
smbclient \\\\server\printer -Uuser%password -c 'print file'
Which does not print the file at all.
And I have tried
(echo "print -" ; cat file ) | smbclient .....
Which does not print the file at all either.
Samba is working as far as shares are concerned, etc. I know I can talk to
the printer because I am getting blank pages and error handler pages. I
just can't seem to figure out the correct syntax. help!
More information about the samba
mailing list