[Samba] print with smbclient - document name

Joel Hammer Joel at HammersHome.com
Tue Feb 19 16:42:03 GMT 2002


You don't seem to have gotten any replies. This isn't really a reply,
in the sense I have anything really useful to tell you.

When using smbclient the file name is sent to the SMB server. I can tell
this by checking the logs on the server. On my linux SMB server, this
name appears to be ignored, and smb.prn is used, apparently defined in
printfs.c in the samba sources. It would seem that windows does a similar
trick. I suppose this is a feature. If I knew where the SMB protocol
was written down (in layman's terms), I would guess this is defined in
the protocol for some reason. (I can just see the explanation now. Because
not all clients will send a file name with the file, especially if std
in is used for the file source, the server ignores the file name and
substitutes a boiler plate name, unless you hack the source code, etc.)

MAYBE there is a setting in windows that allows the print file name
to be displayed. I can't find a similar setting in samba.

Joel

On Tue, Feb 19, 2002 at 03:22:15PM +0100, Dirk Allaert wrote:
> Is there a way to pass along the document name when printing to a shared 
> Windows printer from Unix with smbclient.
> 
> There doesn't seem to be any arg to smbclient to send a document name to 
> Windows. All documents printed with smbclient are named "Remote 
> downlevel document". This is not very nice to say the least.




More information about the samba mailing list