Samba - windows and unix end-of-line conventions
Holmes, Steve
SAHolmes at ahcccs.state.az.us
Wed Oct 31 14:46:00 EST 2001
This might depend on when you deal with the file. I would think the only
time this is a real issue would be when you display text contents or open
the thing up in a text editor. If this be the case, I would recommend a good
editor that will recognize the end-of-line convention in use and retain this
upon saving the file. NoteTab pro is one such editor that will do this. Thus
you can edit unix or DOS/Windows from the same place and have no difference
to you.
Sorry for the off topic nature of this message but figure this would help
this guy out til he sees more of the light and comes fully into the unix
family:).
-----Original Message-----
From: Rich Caloggero [mailto:rjc at MIT.EDU]
Sent: Wednesday, October 31, 2001 12:00 PM
To: speakup at braille.uwo.ca
Subject: Samba - windows and unix end-of-line conventions
I've finally got Samba working. What I originally invissioned using it for
is to be able to administer a linux server remotely from a windows machine.
I like windows for its file browsing and easy text editing (cursors are
tracked and movement commands are easy and intuitive). I have bad hands so
typing filenames gets tedious, so running linux from the shell gets hard on
the hands. Emacspeak is ok, but I use windows for e-mail and music stuff, so
it just seems natural to use it for my user interface stuff, and linux as my
server machine.
Now for the question: the unix newline convention is to terminate lines
with just a line feed character (ascii 10). WIndows insists on seeing the
pair of characters ascii 13, followed by ascii 10. Is there a way to have
Samba do some sort of translation when a file is opened from the windows
side, perhaps based on the file extension, which would turn any unix end of
line sequences into windows sequences, and vice versa when the file was
written back to the Linux end? Seems like something someone has implemented,
but where to find it... Seems like something one could do with a shell
script, but how to get Samba to call it...
Rich
_______________________________________________
Speakup mailing list
Speakup at braille.uwo.ca
http://speech.braille.uwo.ca/mailman/listinfo/speakup
More information about the Speakup
mailing list