Question
Related to
RCSProblemsOnWindows
- Lock files are not being removed after a file is being edited, meaning that I have to break the locks every time I need to re-edit.
We are using Rcs57.zip from the
TWikiOnWindows topic.
Thanks for your help!
- TWiki version: Dec2000
- Web server: Apache
- Server OS: Windows NT4 SP6
--
MartinCleaver - 20 Feb 2001
Answer
.lock files get purged by the
mailnotify script, so they only get removed if you call it frequently. It does not matter if they are not removed because TWiki checks the timestamp to determine if a topic is still locked. Not sure why this would not work on Windows though.
--
PeterThoeny - 24 Feb 2001
Ahah. None of the mail stuff works for me yet. Thanks for the tip. I'll (get someone to) investigate.
--
MartinCleaver - 26 Feb 2001
This is to do with Carriage returns being in the .lock file. More to follow but read
http://www.perl.com/pub/doc/manual/html/pod/perlport.html#Newlines
--
MartinCleaver - 27 Feb 2001
I have it working now. I put binmode(FH) around every FH in wikistore.pm. We should decide what format (i.e. windows or UNIX) should be used on Windows machine.
For the new Store.pm. Be Wary of splitting on \n, as you otherwise end up with something very strange on UNIX machines. The $lockName being returned from the file had an CR appended to it making it ne $userName.
When I get back to work I'll attach my wikistore.pm. Feel free to remind me.
--
MartinCleaver - 27 Feb 2001