Text/Binary Files. HELP!!!

MCCALL,DON (HP-USA,ex1) don_mccall at hp.com
Wed Mar 7 15:54:24 GMT 2001


Oops - you're right Gene.
Moving too fast this morning for my own good...
Thanks,
Don

-----Original Message-----
From: Gene Aulich [mailto:geneaulich at home.com]
Sent: Wednesday, March 07, 2001 10:46 AM
To: MCCALL,DON (HP-USA,ex1)
Subject: Re: Text/Binary Files. HELP!!!


I think you mean ^J, a ^L is a form feed.

----- Original Message -----
From: "MCCALL,DON (HP-USA,ex1)" <don_mccall at hp.com>
To: "'Rafique, Ajmal'" <Ajmal.Rafique at sunmed.co.uk>;
"'samba at lists.samba.org'" <samba at us5.samba.org>
Sent: Wednesday, March 07, 2001 6:52 AM
Subject: RE: Text/Binary Files. HELP!!!


>
> Hi Ajmal,
> 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,
> Don
> -----Original Message-----
> 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!!!
> Importance: High
>
>
> 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
> be done?
>
> Thanks
>
>
> Ajmal
>
> Ajmal Rafique
> eCommerce
> +44(0)1384 445564 (Telephone)
> +44(0)1384 446838 (Fax)
> http://www.sunrisemedical.co.uk
> mailto:ajmal.rafique at sunmed.co.uk
>
> Sunrise Medical Limited
> Sunrise Business Park
> High Street
> Wollaston
> West Midlands
> DY8 4PS
>
> > 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
> instructions:  http://lists.samba.org/mailman/listinfo/samba
>
> --
> 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