[mesa-users] tioga scripts

Willie Strickland cwskas at gmail.com
Sat Jun 29 12:09:07 EDT 2013

Thank you, I will take a closer look at the load.rb approach.


On Jun 27, 2013, at 8:52 PM, Josiah Schwab <jwschwab at berkeley.edu> wrote:

>> I have the ruby and tioga paths correctly set in my .tshrc but adding my script directory to the path works for the shell scripts but not the *.rb files.
>>    setenv PATH /users/willie/mesa/Documents/scripts:$PATH
>> Any suggestions?
> I'm a little unclear about what you're doing / what you want.
> If you're trying to invoke a ruby script like
>  ./my_ruby.rb
> then have you checked that the file has execute permissions set?
> If you're trying use a file in your path as an argument to tioga
>  tioga my_ruby.rb -p
> then that's never going to work, b/c you're telling tioga to look
> for my_ruby.rb in the current working directory.
> You might want to take a look at something like
>  mesa/star/test/star_history/load.rb
> where you can see how Bill gets his tioga scripts loaded.
> With that approach, you need a load.rb in every new directory, but
> you're not duplicating the guts of your code anywhere.
> Best,
> Josiah

More information about the Mesa-users mailing list