1833189 Members
2934 Online
110051 Solutions
New Discussion

Re: samba question

 
SOLVED
Go to solution
John Downs_1
Frequent Advisor

samba question


If this is the wrong forum for a samba question I apologize. However, I am hoping someone has an easy answer to this question. The samba server is an HPUX box running 11.00. I need to save data created on window 2000 to the samba drive in Unix format. That is with a carriage return line feed I believe. What I am getting is the ^M at the end of each line. We have the program that fixs it but we would like it done automaticly. I couldn't find any configuration option for this. Can this be done by samba?

-john
I'd rather be fly fishing for trout!
3 REPLIES 3
John Poff
Honored Contributor
Solution

Re: samba question

Hi,

Samba doesn't handle the CR/LF conversion problem because it is just too hard to figure out what to do with a file [is it ASCII, binary, etc.].

JP
Elif Gius
Valued Contributor

Re: samba question

You have to manually edit the file with sed/awk to delete the ^M.

Look for other forum entries how to do this.
Darren Prior
Honored Contributor

Re: samba question

Hi John,

You'll probably only need to do this if you're accessing the files from the Unix side, because if you then access them from the Win2000 side you'll need to convert them back again.

Anyway, if you're sure you want to do this then read the man pages for dos2ux(1) which you'll need to run manually on each file.

regards,

Darren.
Calm down. It's only ones and zeros...