Jump to content

Command line

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
Papi

Papi

    Newbie

  • Members
  • Pip
  • 2 posts
Well I am interested in learning about programming, and learning codes. So I installed Ruby, but the problem is, I'm following the directions in this 1.  Numbers tutorial and it says command line, now I'm no computer genius, but I thought I knew enough lol. Sooo I'm wondering what that is.

And another thing, is that I have Vista home premium 64bit, so I open the program Run, and typed in run, and the new file name that I made in Ruby. In the tutorial is says a 3 should appear, but all I get is this little black box with some words on it, but I can't tell you what those words are because that black box appears and disappears in like a second.

Thanks

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
The command line would be "cmd" in windows or a terminal/shell on Linux/Unix/Mac. On vista type cmd into the Run box. Once there, execute your commands. If the ruby executable is in your path, it will run.

#3
debtboy

debtboy

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 916 posts
There is an Interactive Ruby Console (irb).

Once installed, you can run it from the menu
and then type all the commands you want into it.

#4
Papi

Papi

    Newbie

  • Members
  • Pip
  • 2 posts
Thanks guys,

Now I have this problem where I enter ruby calc.rb in the cmd prompt, but the 3 that's supposed to appear never does. I enter the command, a cmd prompt opens up, and then disappears again, in like a second. But in the tutorial it says you should see a 3, I never do.

#5
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
run your program with an open command prompt. You should see the output then.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog