Noob: No output when running Ruby command

Hi,

There is not output when I run the command:

ruby filename.rb

the system seems to accept the command but it does not produce any
output (and does not produce any error message either)

The contents of filename.rb is simple, it just consist of the 2 lines

#!/usr/bin/env ruby
print ‘Hello’

The interactive ruby command irb runs perfectly for me.

I’m running Rails 1.2.3 on a iBook PPC 10.4.11.

Is my rails corrupted? Do I need to reinstall my version of Rails? And
how can I go about doing it?

Thanks in advance for any help!

#!/usr/bin/env ruby
print ‘Hello’

try puts ‘Hello’.

Shandy N. wrote:

#!/usr/bin/env ruby
print ‘Hello’

try puts ‘Hello’.

It works! Thank you! :slight_smile: