Text/Binary Files. HELP!!!
don_mccall at hp.com
Wed Mar 7 14:52:17 GMT 2001
No, this is not possible. The ^M in ascii text files on NT (pc's in general)
is due to the fact that pc ascii files use a ^L^M line terminator, whereas
UNIX uses JUST a ^L, so the ^M is treated as just another character in the
line. What you would need is the ability to tell samba to recognize that
the file it is copying is a text file, and actually strip OFF the ^M from
each line. For reasons that have been beaten to death in past threads in
this list, Samba does NOT provide this capability. There are a couple of
unix utilities dos2ux and ux2dos which will convert dos text files to unix
and visa versa (ie, strip off or ADD the ^M to the end of each line,
depending on which way you are going). You can use that, or
there are several commercial PC FTP programs that will do this for you in
the file transfer when you specify 'ascii' as the transfer type.
Hope this helps,
From: Rafique, Ajmal [mailto:Ajmal.Rafique at sunmed.co.uk]
Sent: Wednesday, March 07, 2001 6:31 AM
To: 'samba at lists.samba.org'
Subject: Text/Binary Files. HELP!!!
I am sure someone must have come across this.
Is it possible to force files to binary when copying to Unix directories.
NT -> Unix. Text Files have got ^M in them. How do we prevent this
happening. Would forcing to binary fix the problem & if so how would this
+44(0)1384 445564 (Telephone)
+44(0)1384 446838 (Fax)
mailto:ajmal.rafique at sunmed.co.uk
Sunrise Medical Limited
Sunrise Business Park
> This message is confidential to Sunrise Medical. If you are not the
> intended recipient, do not use or distribute this message; and please
> notify the sender by return of e-mail.
To unsubscribe from this list go to the following URL and read the
More information about the samba