[Samba] Ascii mode in smbclient?

William Beilstein wbeilstein at raymourflanigan.com
Mon Jul 19 14:35:59 GMT 2004


The translate command did what I needed. Why isn't it in any of the man
pages? It would have saved all of us effort. Thanks to Giulio! Your answer
was much appreciated.

-----Original Message-----
From: samba-bounces+wbeilstein=raymourflanigan.com at lists.samba.org
[mailto:samba-bounces+wbeilstein=raymourflanigan.com at lists.samba.org]On
Behalf Of Giulio Orsero
Sent: Monday, July 19, 2004 8:44 AM
To: samba list
Subject: Re: [Samba] Ascii mode in smbclient?

On Mon, 19 Jul 2004 08:27:20 -0400, "William Beilstein"
<wbeilstein at raymourflanigan.com> wrote:

>Not true, I didn't say to assume or negotiate anything;
> I suggested that the option be there. Always do a binary transfer,
> except if the user explicitly says "ASCII" which would mean
>that he wants to transfer an ASCII file between a Unix & dos machine.

Have you tried "translate"?

smbclient '\\host\share' -Uuser%pass -c 'translate; put ascifile'
...
CR/LF<->LF and print text translation now on
...

--
giulioo at pobox.com
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



More information about the samba mailing list