From: Yaser Sulaiman Date: 2008-09-25T20:58:59+09:00 Subject: Re: Invocation of ruby interpreter for .rb files under bash ------=_Part_6912_7225867.1222343956114 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline You should put the following line at the beginning of the script: #!/usr/bin/env ruby Then, you should make your script executable using the chmod command: Prefacechmod +x foo.rb Now, you should be able to run the script by typing: ./foo.rb Regards, Yaser Sulaiman On Thu, Sep 25, 2008 at 2:44 PM, 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 > > ------=_Part_6912_7225867.1222343956114--