From: Maciej Tomaka Date: 2008-09-25T20:51:07+09:00 Subject: Re: Invocation of ruby interpreter for .rb files under bash Zouplaz wrote: > Hello, this is not really related to the core language by itself but I > don't remember how to have the interpreter launched when typing foo.rb > or foo (if foo is the name of the script) under bash ? > > I remember that I have to put something like > #! /usr/ruby > > at the beginnin of the script but I don't remember the right syntax and > didn't found a Google way to express it. > > > > Thanks #!/usr/bin/ruby to check the path please use: which ruby on my box it returned /usr/bin/ruby $ which ruby /usr/bin/ruby Regards -- Posted via http://www.ruby-forum.com/.