If we drag a file from a Windows directory - say autoexec.bat and drop it onto a samba mapped Unix drive, when we then go to the Unix box and vi the file all the lines end in the DOS EOL character (^M) is there any option/configuration in samba to make it convert DOS text files to UNIX format? Brendan Flanagan Leyland Trucks Ltd, Croston Road, Leyland, PR26 6LZ Phone: 01772 625715 Email: BrendanFlanagan@Paccar.com
Hi,> > If we drag a file from a Windows directory - say autoexec.bat and drop it > onto a samba mapped Unix drive, when we then go to the Unix box and vi the > file all the lines end in the DOS EOL character (^M)Yes, and that's okay, because DOS/Windows needs it this way. If you convert it to UNIX-style it won't work under DOS/Windows anymore and you would have to convert it back DOS/Windows-style !!!!> Is there any option/configuration in samba to make > it convert DOS text files to UNIX format?Don't know, but i'd bet there's none because Samba shall IN NO WAY way convert/interpret a file ... I think your problem is not a real samba-problem, it's (i think) a problem of editing files in two worlds ...> Brendan Flanagan > Leyland Trucks Ltd, Croston Road, Leyland, PR26 6LZ > Phone: 01772 625715 > Email: BrendanFlanagan@Paccar.comGreets Harry -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ Min. surfen!
No, as far as I know. Joel On Mon, Jan 13, 2003 at 04:05:55PM +0100, Brendan Flanagan wrote:> > If we drag a file from a Windows directory - say autoexec.bat and drop it > onto a samba mapped Unix drive, when we then go to the Unix box and vi the > file all the lines end in the DOS EOL character (^M) is there any > option/configuration in samba to make it convert DOS text files to UNIX > format? >
Brendan, Download and utilize the latest version of VIM. (Vi Improved) I was concerned with that issue myself, as there are a number of logon BAT files and such that I either, didn't wish to move back and forth all the time to edit, or attempt to continually remember to use the DOS2UNIX and UNIX2DOS command that ships with most releases of Linux. (I say move back and forth because I am not sharing the netlogon directory.) Anyway, one day, I just opened up a DOS Bat file with VIM and lo-and-behold, the file looked fine. I edited it and then saved it off and then opened it up in Windows. It still looked fine. Give a go, hopefully it will work fine for you. Of course, it could also be something added to the Linux distro that I am using. I am running Red Hat 7.2, in case you were wondering. I am certain that you should be able to locate the source code for VIM to then compile on whatever UNIX platform that you are using. Good luck! Regards, Robert Adkins II IT Manager/Buyer Impel Industries, Inc. Ph. 586-254-5800 Fx. 586-254-5804 -----Original Message----- From: Brendan Flanagan [mailto:BrendanFlanagan@Leyland-Trucks.co.uk] Sent: Monday, January 13, 2003 4:06 PM To: samba@lists.samba.org; Robert Adkins Subject: [Samba] Dos To Unix? If we drag a file from a Windows directory - say autoexec.bat and drop it onto a samba mapped Unix drive, when we then go to the Unix box and vi the file all the lines end in the DOS EOL character (^M) is there any option/configuration in samba to make it convert DOS text files to UNIX format? Brendan Flanagan Leyland Trucks Ltd, Croston Road, Leyland, PR26 6LZ Phone: 01772 625715 Email: BrendanFlanagan@Paccar.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Use ftp for this!!! ----- Original Message ----- From: "Brendan Flanagan" <BrendanFlanagan@Leyland-Trucks.co.uk> To: <samba@lists.samba.org> Sent: Monday, January 13, 2003 4:05 PM Subject: [Samba] Dos To Unix?> > If we drag a file from a Windows directory - say autoexec.bat and drop it > onto a samba mapped Unix drive, when we then go to the Unix box and vi the > file all the lines end in the DOS EOL character (^M) is there any > option/configuration in samba to make it convert DOS text files to UNIX > format? > > Brendan Flanagan > Leyland Trucks Ltd, Croston Road, Leyland, PR26 6LZ > Phone: 01772 625715 > Email: BrendanFlanagan@Paccar.com > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba