Hi, i have a annoying problem that drives me crazy. We have set up a Digital/Unix box with samba and the clients (W95) can mount the shares from this box. On the Unix side we create a textfile which will be periodically (or not) appended with new data. A Application on the W95 side reads this file. The Problem is, that the textfile has new lines, the Application don't see them !!! To make the Situation confusing: If i use edit.com in a dos box i can see the new lines !! If i use notepad.exe i don't see the new lines !??! Has anyone a idea how to solve this ???? Many Thanks, Wolfgang Brungert -- ------------------------------------------------------------------------------ Wolfgang Brungert phone: +49 251 977 4142 DeTeMobil fax: +49 251 977 4149 Roddestrasse 12 mail: wbr@DeTeMobil.de 48047 Muenster ------------------------------------------------------------------------------
To solve your problem use unix2dos tool to convert the unix files in a readable format for dos (Add CTRL M at the end of the line)> From samba@samba.anu.edu.au Wed Oct 28 11:13 MET 1998 > Originator: samba@samba.anu.edu.au > Precedence: bulk > From: Wolfgang Brungert <wbr@newton.msro.DeTeMobil.de> > To: Multiple recipients of list <samba@samba.anu.edu.au> > Subject: W95 and no update from samba shares > X-Listprocessor-Version: 6.0c -- ListProcessor by Anastasios Kotsikonas > X-Url: http://samba.anu.edu.au/listproc > X-Comment: Discussion of Samba software package > Mime-Version: 1.0 > Date: Wed, 28 Oct 1998 20:07:51 +1100 > > Hi, > > i have a annoying problem that drives me crazy. > We have set up a Digital/Unix box with samba and the clients (W95) can mount > the shares from this box. On the Unix side we create a textfile which will be > periodically (or not) appended with new data. A Application on the W95 side > reads this file. > > The Problem is, that the textfile has new lines, the Application don't see > them !!! > > To make the Situation confusing: > If i use edit.com in a dos box i can see the new lines !! > If i use notepad.exe i don't see the new lines !??! > > Has anyone a idea how to solve this ???? > > Many Thanks, > Wolfgang Brungert > > -- > ------------------------------------------------------------------------------ > Wolfgang Brungert phone: +49 251 977 4142 > DeTeMobil fax: +49 251 977 4149 > Roddestrasse 12 mail: wbr@DeTeMobil.de > 48047 Muenster > ------------------------------------------------------------------------------ > > >
Wolfgang writes:> We have set up a Digital/Unix box with samba and the clients (W95) can > mount the shares from this box. On the Unix side we create a textfile > which will be periodically (or not) appended with new data. A > Application on the W95 side reads this file.> The Problem is, that the textfile has new lines, the Application don't > see them !!!You might be running afoul of the CR vs CR/LF difference between Unix and DOS. I have a client that was editing perl scripts using Samba. The scripts would fail to be executed because his DOS/Win editor would hang ^M's on the end of every line. To fix this I wrote a little script that uses a utility called dos2unix that strips the ^M's from all the relevant files. (I use Linux, but I suspect you could dig up the source for this somewhere if there's not a binary for Digital Unix.) In smb.conf I have a root postexec option that runs this script whenever my client disconnects from the samba server. Hope this helps! Peter ----- Peter H. Lemieux Voice: (800) 5-CYWAYS CYWAYS, Incorporated (+1 617 796 8995) 19 Westchester Road Fax: (617) 796-8997 Newton, Massachusetts 02458-2519 USA Web: http://www.cyways.com