> > I wrote a message some time ago about the CR/LF problem when using Unix > ASCII files on a samba server, because Unix only uses newlines and DOS > uses CR/LF users get 'strange' files sometimes, it gets even more > confusing when they use DOS programs to process the unix ASCII files. > > For as far as I know now there is no way to translate these files 'on > the fly'. > > So now I try to make it myself. >Excellent... I have been having the same problems myself for quite some time now.. We have a number of applications which run on both a PC and unix, and I am trying to share the same data. This data is a mixture of text and binary files. We also use PC apps to download data from various pieces of equipment to a samba share. This CR/LF problem is a major pain. I have spent many fruitless hours trawling the net looking for a piece of software that does a painless conversion. Or, rather one that I can give the users. Typing "convert file.in file.out" in a dos window just does not cut it. The one in the contributed area of the samba site is a bit moldy. A Windoze program which adds CR/LF conversion to the right mouse click, a bit like winzip, would make my day. Could I make a couple of suggestions about your options for the on the fly conversion for samba...... Could the options include conversion for 1) files with a specific extension (eg .txt) 2) files that have only the a-zA-Z content 3) Some record length option. Most text files do not have long record lengths. etc There is a bit of shareware (WS_FTP) which make a pretty good job of it. This is what we currently use in preference to samba, for the reasons above.
Dear Sambanians, This is not a Samba problem, exactly, but I've lost the ability to compile it under Solaris 2.6 using gcc. It appears to be gcc that's broken. Samba is about the only thing I ever compile under Solaris, but I tested a few other source codes and had the same problem. gcc complains about not finding cpp, then some other related issues. Anyone have the scoop on this behavior? -- Fred P. On Mon, 10 Nov 1997, Peter de Groot wrote:> > > > I wrote a message some time ago about the CR/LF problem when using Unix > > ASCII files on a samba server, because Unix only uses newlines and DOS > > uses CR/LF users get 'strange' files sometimes, it gets even more > > confusing when they use DOS programs to process the unix ASCII files. > > > > For as far as I know now there is no way to translate these files 'on > > the fly'. > > > > So now I try to make it myself. > > > > Excellent... I have been having the same problems myself for quite > some time now.. We have a number of applications which run on both > a PC and unix, and I am trying to share the same data. This data is > a mixture of text and binary files. We also use PC apps to download > data from various pieces of equipment to a samba share. > > This CR/LF problem is a major pain. I have spent many fruitless > hours trawling the net looking for a piece of software that does > a painless conversion. Or, rather one that I can give the users. > Typing "convert file.in file.out" in a dos window just does not cut it. > The one in the contributed area of the samba site is a bit moldy. > > A Windoze program which adds CR/LF conversion to the right mouse click, > a bit like winzip, would make my day. > > Could I make a couple of suggestions about your options for the > on the fly conversion for samba...... Could the options include > conversion for > 1) files with a specific extension (eg .txt) > 2) files that have only the a-zA-Z content > 3) Some record length option. Most text files do not have long > record lengths. > etc > > There is a bit of shareware (WS_FTP) which make a pretty good job of it. > This is what we currently use in preference to samba, for the reasons > above. >
"Previously Peter de Groot said:"> > > I wrote a message some time ago about the CR/LF problem when using Unix > > ASCII files on a samba server, because Unix only uses newlines and DOS > > uses CR/LF users get 'strange' files sometimes, it gets even more > > confusing when they use DOS programs to process the unix ASCII files. > > > > For as far as I know now there is no way to translate these files 'on > > the fly'. > > This CR/LF problem is a major pain. I have spent many fruitless > hours trawling the net looking for a piece of software that doesI don't know about on-the-fly, but there is a Windows utility I think I found in the Samba archives that is supposed to do this called FixCRLF by Jim Barry, but I've never gotten it to work. Anyone else get it working? On UNIX there is dos2unix and unix2dos (on SunOS and Solaris) dos2ux and ux2dos (on HP-UX) that will do the conversion. When I start vi on a file and realize I have a DOS formatted file I just type: :%s/^V^M//g (where ^ means hold down CTRL key) to globally get rid of the ^M characters. Boyd -- =Boyd Johnson boydj@brooktree.com Rockwell Semiconductor Sys., San Diego, Ca.=
On Monday, 10 Nov 1997, Peter de Groot wrote:> ... > A Windoze program which adds CR/LF conversion to the right mouseclick,> a bit like winzip, would make my day. >...Try the Programmer's File Editor PFE, written by Alan Phillips. I have been using this editor on WFWG occasionally, and it works fine. You may obtain more info from http://www.lancaster.ac.uk/people/cpaap/pfe . Regards, Martin