rgreen
September 15, 2009, 5:45am
1
Please forgive this stupid newb question but I thought it was possible
to send a command to the ruby interpreter without using IRB.
ruby puts “hello”
This command just returns an error that there is no file or directory
called hello.
Running Ruby 1.9.1
Help please.
rgreen
September 15, 2009, 5:55am
2
On Mon, Sep 14, 2009 at 8:45 PM, Rong [email protected] wrote:
Please forgive this stupid newb question but I thought it was possible
to send a command to the ruby interpreter without using IRB.
ruby puts “hello”
ruby --help
rgreen
September 15, 2009, 6:18am
3
There is nothing in ruby --help to answer my question.
On Sep 14, 10:55 pm, Hassan S. [email protected]
rgreen
September 15, 2009, 6:24am
4
Thank you. I did not understand that the entire command had to be
quoted.
rgreen
September 15, 2009, 6:19am
5
On Mon, Sep 14, 2009 at 11:17 PM, Rong [email protected] wrote:
rgreen
September 15, 2009, 6:25am
6
rgreen
September 15, 2009, 7:16am
7
Ron G. wrote:
Please forgive this stupid newb question but I thought it was possible
to send a command to the ruby interpreter without using IRB.
ruby puts “hello”
This command just returns an error that there is no file or directory
called hello.
Running Ruby 1.9.1
Help please.
Im not sure if you figured out your problem… but here is my help…
http://www.ruby-lang.org/en/documentation/quickstart/
rgreen
September 15, 2009, 7:39am
8
On 2009-09-15, Rong [email protected] wrote:
There is nothing in ruby --help to answer my question.
There is.
Maybe you should narrow the field a bit:
$ ruby --help | grep command
-s
rgreen
September 15, 2009, 6:30am
9
On Mon, Sep 14, 2009 at 9:17 PM, Rong [email protected] wrote:
There is nothing in ruby --help to answer my question.
Are you sure?
’ -e ‘command’ one line of script. Several -e’s allowed. Omit
[programfile]’
rgreen
September 15, 2009, 3:35pm
10
On Sep 15, 1:16 am, Bigmac T. [email protected] wrote:
Im not sure if you figured out your problem… but here is my help…Ruby in Twenty Minutes
Posted viahttp://www.ruby-forum.com/.
You could always just use an IDE like NetBeans: http://www.netbeans.org/
rgreen
September 16, 2009, 2:17am
11
On Sep 15, 5:40 pm, Greg D. [email protected] wrote:
On Tue, Sep 15, 2009 at 8:35 AM, justathoughtor2 [email protected] wrote:
You could always just use an IDE like NetBeans:http://www.netbeans.org/
You could always just learn the API.
–
Greg D.http://destiney.com/
Was that intended as an insult? I was merely trying to help the best
way I knew how. I don’t use the command line. I think it takes too
long.
rgreen
September 16, 2009, 8:57am
12
2009/9/16 justathoughtor2 [email protected] :
On Sep 15, 5:40 pm, Greg D. [email protected] wrote:
On Tue, Sep 15, 2009 at 8:35 AM, justathoughtor2 [email protected] wrote:
You could always just use an IDE like NetBeans:http://www.netbeans.org/
You could always just learn the API.
Was that intended as an insult? I was merely trying to help the best
way I knew how. I don’t use the command line. I think it takes too
long.
It seems a lot of us use command line Ruby because they consider it
faster . I guess Greg considered it a bit too heavy weight to
use an IDE for “hello”. Btw, the OP specifically asked how to make
Ruby print “hello” from the command line - so “use an IDE” is not
exactly an answer to that question.
Kind regards
robert
rgreen
September 15, 2009, 11:43pm
13
On Tue, Sep 15, 2009 at 8:35 AM, justathoughtor2
[email protected] wrote:
You could always just use an IDE like NetBeans: http://www.netbeans.org/
You could always just learn the API.