Re: /bin/env

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 12/10/2010 11:20 AM, James B. Byrne wrote:
> Please forgive my ignorance but I need a explanation of how to
> accomplish the following since I cannot figure it out from the
> documents.
>
> I have a Ruby script with a shebang line that looks like this:
>
> #!/usr/bin/env ruby
>
> On one particular host I have two Ruby interpreters installed; one
> the CentOS base version 1.8.6 in /usr/bin/ruby the other version
> 1.8.7 in /usr/local/bin/ruby.  In my shell the which command finds
> /usr/local/bin/ruby.  In a cron job the /usr/bin/ruby is used by the
> /bin/env invocation.
>
> My question is: How does one configure /bin/env to return the
> /usr/local/bin/ruby version?  or does that question even make sense?
>

Why not just change the shebang line to use

#!/usr/local/bin/ruby

?

-- 
Benjamin Franz

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux