Operating System - HP-UX
1832891 Members
2514 Online
110048 Solutions
New Discussion

Samba transfers text files in binary

 
SOLVED
Go to solution
David Child_1
Honored Contributor

Samba transfers text files in binary

I know there is probably a better format for this question, but I thought I'd give it a shot here;

I am using Samba on one of my HP-UX boxes. The Windows NT clients use the Samba connected drives to move files from our development environment to our testing environment. It works pretty well, but all ASCII files end up with "^M" characters. These files are scripts and config files that get used on the UNIX server. In order to use them we have to run dos2ux.

Is there anyway to trasfer the files via Samba in ASCII mode?

Thanks,
David
2 REPLIES 2
Uday_S_Ankolekar
Honored Contributor

Re: Samba transfers text files in binary


Hi,

Can you use bin or ascii before you start doing ftp , for bin file and ascii file respectively.
just a thought

-USA
Good Luck..
Rodney Hills
Honored Contributor
Solution

Re: Samba transfers text files in binary

As samba is defined currently, the answer is NO.

I have heard of a source patch that can make samba do the necessary conversion based on file extension. If you find it, it would require a full compile of samba of course.

-- Rod Hills
There be dragons...