From: jeepcreep Date: 2003-03-11T06:59:27+09:00 Subject: Re: Thinking of learning Ruby --0-811776887-1047333565=:55196 Content-Type: text/plain; charset=us-ascii THANX all! I got cygwin running. Two other questions though: - when I click on the .rb module the command sceen blanks and disappears so I can't see the result; if I execute from the command line, I see the result - what gives? - because ruby.exe is in the bin directory, I can only execute the .rb from there; in other words, I can only store the .rb in the same directory as ruby.exe; how do I get around this? Wesley Moxam wrote:The Windows installer should set the correct file associations so that double clicking a ruby file will execute it. If you want to run ruby from the command line just type: ruby scriptname.rb -- Wes ----- Original Message ----- From: "Seth Kurtzberg" To: "ruby-talk ML" Sent: Monday, March 10, 2003 3:13 PM Subject: Re: Thinking of learning Ruby > The easiest way is to install cygwin (www.cygwin.com) which gives you a UNIX > like environment with a bash shell. Then you use #! just like a real > computer. :) > > On Monday 10 March 2003 12:31 pm, jeepcreep wrote: > > Just to take you a little off subject for a moment: > > I'm also a newby. I went to your site and installed Ruby (Windows version). > > On the comand line level it works just fine. Now to create a program. > > Therein lies my problem. At home I am running LINUX, so I don't expect a > > problem (I'll install the LINUX version and use #!). At work, though, I'm > > not that lucky. I am running on an XP platform. I can't use #! here so how > > do I define the directory where my .rb modules will be run from? Daniel > > Carrera wrote:> Althoug getting a job in > > programming is a concern of mine, I think > > > > > I'd still be able to find another line of work. I am however very > > > interested in being a volunteer developer for a Linux distribution, > > > it would certainly help me learn the programming language. > > > > Most of Linux/OSS is written in C, in the Unix tradition. KDE is an > > exception, it is mostly C++. > > > > C is easier to learn than C++, and to some degree it is a subset of > > C++. > > > > I would suggest you learn Ruby first, then C then (possibly) C++. In > > my case I've never had a compelling reason to learn C++. I only know > > C. > > -- > Seth Kurtzberg > M. I. S. Corp. > 480-661-1849 > seth@cql.com > --0-811776887-1047333565=:55196 Content-Type: text/html; charset=us-ascii

THANX all! I got cygwin running. Two other questions though:

 - when I click on the .rb module the command sceen blanks and disappears so I can't see the result; if I execute from the command line, I see the result - what gives?

- because ruby.exe is in the bin directory, I can only execute the .rb from there; in other words, I can only store the .rb in the same directory as ruby.exe; how do I get around this?

 Wesley Moxam <wmoxam@klickit.com> wrote:

The Windows installer should set the correct file associations so that
double clicking a ruby file will execute it.

If you want to run ruby from the command line just type: ruby scriptname.rb

-- Wes

----- Original Message -----
From: "Seth Kurtzberg"
To: "ruby-talk ML"
Sent: Monday, March 10, 2003 3:13 PM
Subject: Re: Thinking of learning Ruby


> The easiest way is to install cygwin (www.cygwin.com) which gives you a
UNIX
> like environment with a bash shell. Then you use #! just like a real
> computer. :)
>
> On Monday 10 March 2003 12:31 pm, jeepcreep wrote:
> > Just to take you a little off subject for a moment:
> > I'm also a newby. I went to your site and installed Ruby (Windows
version).
> > On the comand line level it works just fine. Now to create a program.
> > Therein lies my problem. At home I am running LINUX, so I don't expect a
> > problem (I'll install the LINUX version and use #!). At work, though,
I'm
> > not that lucky. I am running on an XP platform. I can't use #! here so
how
> > do I define the directory where my .rb modules will be run from? Daniel
> > Carrera wrote:> Althoug getting a job in
> > programming is a concern of mine, I think
> >
> > > I'd still be able to find another line of work. I am however very
> > > interested in being a volunteer developer for a Linux distribution,
> > > it would certainly help me learn the programming language.
> >
> > Most of Linux/OSS is written in C, in the Unix tradition. KDE is an
> > exception, it is mostly C++.
> >
> > C is easier to learn than C++, and to some degree it is a subset of
> > C++.
> >
> > I would suggest you learn Ruby first, then C then (possibly) C++. In
> > my case I've never had a compelling reason to learn C++. I only know
> > C.
>
> --
> Seth Kurtzberg
> M. I. S. Corp.
> 480-661-1849
> seth@cql.com
>

--0-811776887-1047333565=:55196--