Monday, 9 September 2013

Why won't my Ruby script execute?

Why won't my Ruby script execute?

So, I made a simply ruby script,
#!/usr/bin/env ruby
puts "Hello!"
When I try to run it in terminal it doesn't put "Hello!" on the screen. I
have tried entering, chmod +x test.rb (test.rb is the name of my file).
When I run it, it doesn't give me an error, it just doesn't display
"Hello!". Any help will be much appreciated. I have looked everywhere for
a possible answer, and I have found nothing so far.

No comments:

Post a Comment