From: Robert Klemme Date: 2008-12-17T19:55:44+09:00 Subject: Re: Block execution of script while same script is already running 2008/12/17 MrBanabas@googlemail.com : > Bob is starting script my_test.rb which runs a over an hour... > 5 minutes later... > Alice is not knowing that Box has already started is and starts it > again. > Script should detect that it is already running and stop executing. > > What is the best way to achieve this? There are solutions for this in the archives of this list. You can use an exclusive file lock on $0 as an example. Kind regards robert -- remember.guy do |as, often| as.you_can - without end