LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-11-2008, 08:10 AM   #1
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
How to edit files with xemacs over Samba share? Samba problem?


Hi all

I have a pretty unique problem with xemacs and editing a file accesible via a samba share on a remote machine.

I can only open the file once. If I try to save the file at all, or close it an open it again, xemacs hangs solildy. I have ssh'ed into the remote machine, and ran smbstatus. I've noticed that xemacs creates locks when you edit a file, but never releases them (ever). Samba then apparently thinks that the file is being written by somebody else, and never allows any other application on my machine to open or work with that file again.

I. e. when I edit a file with kedit on the remove machine, this is momentarily there while opening the file over the network:

[root@linuxdev1 ~]# smbstatus

Samba version 3.0.23c
PID Username Group Machine
-------------------------------------------------------------------

Service pid machine Connected at
-------------------------------------------------------
shared 20431 41.246.154.10 Tue Nov 11 13:50:12 2008
shared 20529 41.242.190.214 Tue Nov 11 13:56:44 2008
shared 20802 10.0.0.100 Tue Nov 11 14:39:15 2008
IPC$ 20674 41.242.32.191 Tue Nov 11 14:12:56 2008

Locked files:
20431 99 DENY_NONE 0x2019f RDWR EXCLUSIVE+BATCH /usr/local/apache2/htdocs/php generic/render_center5.php Tue Nov 11 16:06:16 2008
[root@linuxdev1 ~]#
----------------------------------------------

The moment the file is loaded into kedit, the lock is gone:
[root@linuxdev1 ~]# smbstatus

Samba version 3.0.23c
PID Username Group Machine
-------------------------------------------------------------------

Service pid machine Connected at
-------------------------------------------------------
shared 20431 41.246.154.10 Tue Nov 11 13:50:12 2008
shared 20529 41.242.190.214 Tue Nov 11 13:56:44 2008
shared 20802 10.0.0.100 Tue Nov 11 14:39:15 2008
IPC$ 20674 41.242.32.191 Tue Nov 11 14:12:56 2008

No locked files.

[root@linuxdev1 ~]#
-------------------------------------------------

However, Emacs -NEVER- releases the lock - it keeps on looking like it looks above ONLY while kedit / vi / kate / whatever is opening the file and reading its contents.

Any idea how to make Emacs behave like any other editor, and just leave the file alone once it has opened it?

If it maintains a lock as it currently does, it is impossible to use xemacs to edit any files over a samba share... can this be??

I have noticed that emacs-nox does NOT do this (i. e. keep a constant read lock on the samba'ed file) - why can't xemacs do the same??

Thanks!
 
Old 11-13-2008, 01:00 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Original Poster
Rep: Reputation: 103Reputation: 103
This issue is RESOLVED - I upgraded to the newest Emacs version I could find (2008-11-13) and it now edits well over a samba connection...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba and 2 files share finsh Linux - Server 2 09-16-2008 08:22 AM
Using Samba to share files between Linux's raypen Linux - Software 1 06-19-2008 12:41 AM
Share files using Samba euro2004 Linux - Software 5 01-30-2006 04:54 PM
Why can't i edit a openoffice file over samba share maqish Linux - Software 4 05-18-2004 01:07 PM
Don't share .files with Samba objorkum Linux - Software 1 02-28-2004 07:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration