What directory is the saved file in would be my first question.

ruby /path/to/calc.rb

would be the first thing that comes to mind.

David Newberger
651.271.9045
me / davidnewberger.com
http://www.davidnewberger.com


On Mar 25, 2006, at 1:23 PM, paul.denlinger / gmail.com wrote:

> I'm learning Ruby from the Learn to Program tutorial by Chris Pine.
>
> On http://pine.fm/LearnToProgram/?Chapter=01, he mentions saving a
> calc.rb file after typing in "puts 1 + 2" in my text editor , then
> going to the command line and typing "ruby calc.rb", and getting the
> results "3" returned.
>
> I am not getting this result; instead I'm getting a message that the
> file or directory can't be found. I'm using the built-in Scintilla  
> text
> editor which comes with Ruby.
>
> How do I get the command line to see the saved file?
>
> Thanks in advance for your assistance.
>
>