From: Sylvain Joyeux Date: 2007-11-08T19:42:26+09:00 Subject: Re: locate oci8.rb On Thu, Nov 08, 2007 at 07:11:28PM +0900, R�mi Lavergne wrote: > My ruby interpreter is > able to locate it, I would like to be able to do the same either in ruby > or in sh script. Any idea ? The interpreter searches the file in directories defined in $LOAD_PATH. You can do the same ... location = $LOAD_PATH.find {�|dirname| File.exists?(File.join(dirname, filename) } Sylvain