From: John Carter Date: 2009-04-20T08:45:14+09:00 Subject: Which ruby is running me? So I have despaired of getting mutexes, threads and forks to coexist peacably in Ruby. (As soon as the child process touches a mutex that existed in the parent.... Bad Things can happen.) So Plan B is to - spin a thread - to mind a fork - that just execs a new instance of Ruby. Now I tend to have several versions of Ruby lying around on my Box. What is the One True Way of finding the path to _the_ instance of ruby that is currently executing this script? GNU "Make" is pretty good about this, it has a $(MAKE) variable that gives the exact path of make that is running. John Carter Phone : (64)(3) 358 6639 Tait Electronics Fax : (64)(3) 359 4632 PO Box 1645 Christchurch Email : john.carter@tait.co.nz New Zealand