From: Glenn Smith Date: 2006-11-07T17:56:00+09:00 Subject: The way to restrict a ruby program to just once occurrence on a windows box? ------=_Part_1672_14945421.1162889756916 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm rewriting a vb app to ruby (in about a quarter of the code!). If I ran the same ruby program twice in parallel, the second instance should exit. In VB6 I could do this: If App.PrevInstance Then Exit Sub Any ideas how this is done in ruby? Ta muchly ------=_Part_1672_14945421.1162889756916--