Hi, I am running Samba 2.2.8a on Solaris 8, and have shared out a directory containing some simple text files. The issue I am experiencing is the following: If the files are FTP'd from the Unix box to a Windows machine and opened using Notepad, the formatting is correct. If the same files are either opened directly or copied (from the Samba share) from the Unix box to the Windows machine, and again opened in Notepad, the formatting of the file is completely messed up. I have noticed, looking at the properties of the files from the windows box, that there is a size difference between the files that are FTP'd and those from the Samba share. I am sure this has something to do with it. One of those files details: File through Samba share reads - 3.24 KB (3,319 bytes) The same file Ftp'd reads - 3.37 KB (3,451 bytes) Any comments on where I could start (besides getting rid of Windows) would be appreciated. Thanks, Mario
Sounds like line feeds. Try opening the files in a proper text editor, jedit being the first one that springs to mind and check to see if they look correct. Mario Valetti wrote:> Hi, > > I am running Samba 2.2.8a on Solaris 8, and have shared out a directory > containing some simple text files. > > The issue I am experiencing is the following: > > If the files are FTP'd from the Unix box to a Windows machine and opened > using Notepad, the formatting is correct. If the same files are either > opened directly or copied (from the Samba share) from the Unix box to the > Windows machine, and again opened in Notepad, the formatting of the file is > completely messed up. > > I have noticed, looking at the properties of the files from the windows box, > that there is a size difference between the files that are FTP'd and those > from the Samba share. > > I am sure this has something to do with it. > > One of those files details: > > File through Samba share reads - 3.24 KB (3,319 bytes) > The same file Ftp'd reads - 3.37 KB (3,451 bytes) > > > Any comments on where I could start (besides getting rid of Windows) would > be appreciated. > > > Thanks, > Mario
If the files were created on Unix, they will have Unix linefeeds; Notepad doesn't know how to deal with them. FTP automagically changes the linefeeds from Unix to Windows. Use MS "Wordpad" instead of Notepad. Wordpad is more intelligent and can correctly interpret Unix & Windows linefeeds. -----Original Message----- From: Mario Valetti [mailto:Mario.Valetti@kytegroup.com] Sent: Friday, August 15, 2003 12:12 PM To: 'samba@lists.samba.org' Subject: [Samba] Incorrect format of Text Hi, I am running Samba 2.2.8a on Solaris 8, and have shared out a directory containing some simple text files. The issue I am experiencing is the following: If the files are FTP'd from the Unix box to a Windows machine and opened using Notepad, the formatting is correct. If the same files are either opened directly or copied (from the Samba share) from the Unix box to the Windows machine, and again opened in Notepad, the formatting of the file is completely messed up. I have noticed, looking at the properties of the files from the windows box, that there is a size difference between the files that are FTP'd and those from the Samba share. I am sure this has something to do with it. One of those files details: File through Samba share reads - 3.24 KB (3,319 bytes) The same file Ftp'd reads - 3.37 KB (3,451 bytes) Any comments on where I could start (besides getting rid of Windows) would be appreciated. Thanks, Mario -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Thanks Thomas, I had received a mail off-list from someone else pointing me in the right direction on Friday. He also mentioned that I may be able to use a utiliy called unix2dos / dos2unix to add the characters needed for notepad to insert a new line. I failed to mention in my original E-mail that the file would indeed open correctly formatted within wordpad - As you advised. Thanks to all for the assistance. Mario -----Original Message----- From: Brand, Thomas R. [mailto:TRBrand@cvs.com] Sent: 15 August 2003 19:37 If the files were created on Unix, they will have Unix linefeeds; Notepad doesn't know how to deal with them. FTP automagically changes the linefeeds from Unix to Windows. Use MS "Wordpad" instead of Notepad. Wordpad is more intelligent and can correctly interpret Unix & Windows linefeeds. -----Original Message----- From: Mario Valetti [mailto:Mario.Valetti@kytegroup.com] Sent: Friday, August 15, 2003 12:12 PM Hi, I am running Samba 2.2.8a on Solaris 8, and have shared out a directory containing some simple text files. The issue I am experiencing is the following: If the files are FTP'd from the Unix box to a Windows machine and opened using Notepad, the formatting is correct. If the same files are either opened directly or copied (from the Samba share) from the Unix box to the Windows machine, and again opened in Notepad, the formatting of the file is completely messed up. I have noticed, looking at the properties of the files from the windows box, that there is a size difference between the files that are FTP'd and those from the Samba share. I am sure this has something to do with it. One of those files details: File through Samba share reads - 3.24 KB (3,319 bytes) The same file Ftp'd reads - 3.37 KB (3,451 bytes) Any comments on where I could start (besides getting rid of Windows) would be appreciated. Thanks, Mario