Re: [PLUG] file locking

2009-07-23 Thread Aditya Godbole
On Thu, Jul 23, 2009 at 7:31 PM, steve wrote: > People have already answered your question but you are unwilling to accept the > answer they provide. I have already accepted the "No, you can't" answer. But everytime there is a new mail in the thread which explains how to do something I do not want

Re: [PLUG] file locking

2009-07-23 Thread steve
Hi, Aditya Godbole wrote: > On Wed, Jul 22, 2009 at 11:41 AM, Shridhar > Daithankar wrote: >> >> If it is application specific, e.g. word or excel, then they do locking >> already(but opening a word/excel file on a share could have performance >> problems). >> >> Recently OOo has implemented their

Re: [PLUG] file locking

2009-07-23 Thread Aditya Godbole
On Wed, Jul 22, 2009 at 11:41 AM, Shridhar Daithankar wrote: > > If it is application specific, e.g. word or excel, then they do locking > already(but opening a word/excel file on a share could have performance > problems). > > Recently OOo has implemented their own locking scheme that works  on al

Re: [PLUG] file locking

2009-07-23 Thread Rahul Sundaram
On 07/22/2009 10:53 AM, म.हा.सा.ग.र wrote: > > i will humbly accept your accusations (even when they are untrue) only > if any OP ever responded the way you did to my suggestions/replies... > > Rest is mystery/perspective-difference That's just hand waving. Your story had nothing to do with fil

Re: [PLUG] file locking

2009-07-22 Thread Abhijit Bhopatkar
>>> I am looking at a user level approach, not a programmer level approach. >>> >> >> For a user level (requires cooperation) approach, assume you have the same >> app sharing files in the same folder, then this app co-operates with other >> instances by always calling for exclusive lock, then NOT

Re: [PLUG] file locking

2009-07-21 Thread Shridhar Daithankar
On Wednesday 22 July 2009 10:17:32 Aditya Godbole wrote: > On Tue, Jul 21, 2009 at 4:56 PM, Amarendra > > Godbole wrote: > > P.S.: I am still clueless as to what you intend to do. > > There is a file I have shared via Samba. I want only one user to be > able to open the file (for reading or writing

Re: [PLUG] file locking

2009-07-21 Thread म . हा . सा . ग . र
On Wed, Jul 22, 2009 at 10:17 AM, Aditya Godbole wrote: > On Tue, Jul 21, 2009 at 4:56 PM, Amarendra > Godbole wrote: >> >> P.S.: I am still clueless as to what you intend to do. >> > > There is a file I have shared via Samba. I want only one user to be > able to open the file (for reading or writi

Re: [PLUG] file locking

2009-07-21 Thread म . हा . सा . ग . र
On Mon, Jul 20, 2009 at 1:19 PM, Rahul Sundaram wrote: > On 07/20/2009 09:58 AM, म.हा.सा.ग.र wrote: >> On Sun, Jul 19, 2009 at 9:27 PM, Rahul wrote: >>> On 07/17/2009 10:27 AM, म.हा.सा.ग.र wrote: On Thu, Jul 16, 2009 at 2:58 PM, Aditya Godbole wrote: > On Tue, Jul 14, 2009 at 11:59 AM, Man

Re: [PLUG] file locking

2009-07-21 Thread Aditya Godbole
On Tue, Jul 21, 2009 at 4:56 PM, Amarendra Godbole wrote: > > P.S.: I am still clueless as to what you intend to do. > There is a file I have shared via Samba. I want only one user to be able to open the file (for reading or writing) at a time. -aditya ___ Pun

Re: [PLUG] file locking

2009-07-21 Thread Amarendra Godbole
On Mon, Jul 20, 2009 at 10:34 AM, Aditya Godbole wrote: > On Fri, Jul 17, 2009 at 8:48 AM, Vishal Rao wrote: >>> >>> I am looking at a user level approach, not a programmer level approach. >>> >> >> For a user level (requires cooperation) approach, assume you have the same >> app sharing files in t

Re: [PLUG] file locking

2009-07-20 Thread steve
Hi, It's weird that you haven't got a useful answer yet[1] ! Aditya Godbole wrote: > On Fri, Jul 17, 2009 at 8:48 AM, Vishal Rao wrote: >>> >>> I am looking at a user level approach, not a programmer level approach. >>> >> >> For a user level (requires cooperation) approach, assume you have the s

Re: [PLUG] file locking

2009-07-20 Thread Pranav Peshwe
On Sun, Jul 19, 2009 at 9:27 PM, Rahul Sundaram wrote: > On 07/17/2009 10:27 AM, म.हा.सा.ग.र wrote: > > On Thu, Jul 16, 2009 at 2:58 PM, Aditya Godbole > wrote: > >> On Tue, Jul 14, 2009 at 11:59 AM, Manas Alekar > wrote: > >>> > >>> You might be interested in mandatory file locking via setgid. Mo

Re: [PLUG] file locking

2009-07-20 Thread Rahul Sundaram
On 07/20/2009 09:58 AM, म.हा.सा.ग.र wrote: > On Sun, Jul 19, 2009 at 9:27 PM, Rahul wrote: >> On 07/17/2009 10:27 AM, म.हा.सा.ग.र wrote: >>> On Thu, Jul 16, 2009 at 2:58 PM, Aditya Godbole wrote: On Tue, Jul 14, 2009 at 11:59 AM, Manas Alekar wrote: >> >> >> If you don't have a direct helpful

Re: [PLUG] file locking

2009-07-20 Thread Aditya Godbole
On Fri, Jul 17, 2009 at 8:48 AM, Vishal Rao wrote: >> >> I am looking at a user level approach, not a programmer level approach. >> > > For a user level (requires cooperation) approach, assume you have the same > app sharing files in the same folder, then this app co-operates with other > instances

Re: [PLUG] file locking

2009-07-19 Thread Hari
2009/7/17 Vishal Rao > On Thu, Jul 16, 2009 at 2:58 PM, Aditya Godbole > wrote: > > > On Tue, Jul 14, 2009 at 11:59 AM, Manas Alekar > wrote: > > > > > > You might be interested in mandatory file locking via setgid. Mount > > > using option mand and then use lockf. There are pitfalls, though. >

Re: [PLUG] file locking

2009-07-19 Thread Rahul Sundaram
On 07/17/2009 10:27 AM, म.हा.सा.ग.र wrote: > On Thu, Jul 16, 2009 at 2:58 PM, Aditya Godbole wrote: >> On Tue, Jul 14, 2009 at 11:59 AM, Manas Alekar wrote: >>> >>> You might be interested in mandatory file locking via setgid. Mount >>> using option mand and then use lockf. There are pitfalls, thou

Re: [PLUG] file locking

2009-07-18 Thread Vishal Rao
On Thu, Jul 16, 2009 at 2:58 PM, Aditya Godbole wrote: > On Tue, Jul 14, 2009 at 11:59 AM, Manas Alekar wrote: > > > > You might be interested in mandatory file locking via setgid. Mount > > using option mand and then use lockf. There are pitfalls, though. > > I am looking at a user level approac

Re: [PLUG] file locking

2009-07-18 Thread म . हा . सा . ग . र
On Thu, Jul 16, 2009 at 2:58 PM, Aditya Godbole wrote: > On Tue, Jul 14, 2009 at 11:59 AM, Manas Alekar wrote: >> >> You might be interested in mandatory file locking via setgid. Mount >> using option mand and then use lockf. There are pitfalls, though. > > I am looking at a user level approach, no

Re: [PLUG] file locking

2009-07-16 Thread Aditya Godbole
On Tue, Jul 14, 2009 at 11:59 AM, Manas Alekar wrote: > > You might be interested in mandatory file locking via setgid. Mount > using option mand and then use lockf. There are pitfalls, though. I am looking at a user level approach, not a programmer level approach. -aditya __

Re: [PLUG] file locking

2009-07-15 Thread Manas Alekar
> What is the best way of forcing a file to be opened by only one > process at a time? You might be interested in mandatory file locking via setgid. Mount using option mand and then use lockf. There are pitfalls, though. Manas ___ Pune GNU/Linux Users Group Ma

Re: [PLUG] file locking

2009-07-10 Thread Shrinivasan T
Hi, 2009/7/10 Aditya Godbole > > Hi, > > What is the best way of forcing a file to be opened by only one > process at a time? > The file is being shared over a Samba share. http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/locking.html This link may help you. -- Regards, T.Shriniva

[PLUG] file locking

2009-07-09 Thread Aditya Godbole
Hi, What is the best way of forcing a file to be opened by only one process at a time? The file is being shared over a Samba share. -aditya ___ Pune GNU/Linux Users Group Mailing List