From: Sam Duncan Date: 2010-12-10T04:33:27+09:00 Subject: Re: How to tell if ruby app is already running To avoid file based locking you could just choose an application specific port and attempt to bind to it at startup. Sam On 10/12/10 05:33, ara.t.howard wrote: > > On Dec 4, 2:47 pm, Jim Burgess wrote: > >> Hi, >> >> I have a FXRuby app, which is fine and dandy and does exactly what it >> should. However, if the user, for whatever reason, decides to start two >> instances of the app, bad things start happening. >> My question: is there any way for my app to check if another instance of >> itself is running before launching itself? >> >> Thanks very much in advance. >> >> > > this will work in *nix and winblows: > > https://gist.github.com/734929 > > > >> -- >> Posted viahttp://www.ruby-forum.com/. >> >