Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a situation in an office where a LAN will be installed - what I want to know is, after that, can 2 people open the same spreadsheet file, i.e. the person on the computer that it's on, as well as somebody across the LAN?
I have a situation in an office where a LAN will be installed - what I want to know is, after that, can 2 people open the same spreadsheet file, i.e. the person on the computer that it's on, as well as somebody across the LAN?
Thanks.
Linux lets you use file locking, or not. It's up to the programmer basically. If you're using a spreadsheet Open Office :
Quote:
If you are working on a network where several people may have access to the same document, file locking prevents people accidentally overwriting other people's changes. As OpenOffice.org works on different operating systems, it cannot rely on the operating system alone to tell users when a document is in use. OpenOffice.org now has its own mechanism, which allows it to have a reliable locking when the locking from the operating systems fails.
It's only written to when the user clicks 'save' and that's pretty brief. Without locking if one guy saved something, then another guy saved something, that second guy would overwrite the first guys saved data. That's why openoffice uses locking - and it should!
I'm pretty sure anyone will be able to download/copy the file if they're accessing it with something like an ftp or samba server or something. But when it comes to writing to it the file, proper locking should be implemented by the program to prevent race-condition scenarios. That's all OS independent though.
I have a situation in an office where a LAN will be installed - what I want to know is, after that, can 2 people open the same spreadsheet file, i.e. the person on the computer that it's on, as well as somebody across the LAN?
Thanks.
Two people will be able to open the file at the same time with no problems. The issues comes when two people try to save the file at the same time. As a poster above correctly points out, this is called a "race condition". This isn't a Linux specific issue - all networkable OS's have to deal with this.
If you need to allow more than one person to edit and change a file, you should implement some sort or version control system, like Git (http://git-scm.com/) or Subversion (http://subversion.apache.org/).
Will there be any message popping up to say that the file is already in use by someone else? (like happens in Windoze)?
Possibly. Depends on the software being used to open the file, how the network is setup, are you using nfs, etc.
If it were two people on the same computer, using VI to open the file, then in that particular scenario you would get a warning...
Sounds like you really need some sort of version control. A Subversion server would take care of these issues for you. And your users would be able to use what ever OS they wanted as there are subversion clients for all platforms.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.