From: Kev Jackson Date: 2006-04-12T16:18:25+09:00 Subject: Re: a newbie. not getting run a script san wrote: >hi jeff/ john and all others > >i have tried all the methods above but in vain >line by line commands are being executed but i could not run the program >as a whole > >i have a screenshot of the commands. if you can plese look into it and >give your comments where i am going wrong. the first lines are same as >that in the file count.rb > >since i could not upload image in this forum, i have created a blogger >http://santanusasmal.blogspot.com/ > >regards >santanu > > > you must exit from irb before you can run the command irb -v, similarly with the other commands that refuse to work. irb is the interactive version of ruby, it's not meant for running scripts. to run a script, open a new cmd prompt window and type in something like ruby my_script.rb Good luck Kev