From: Fred Phillips Date: 2008-08-25T04:43:52+09:00 Subject: Re: Executable ruby --Pd0ReVV5GZGQvF3a Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon Aug 25 04:39:04 2008, Pepe Sanchez wrote: > hi all >=20 > I am trying to make the ruby Hello.rb executable in mac os X > this is the Hello.rb > #!/usr/bin/ruby > print "Hello World" >=20 >=20 > chmod +x Hello.rb >=20 >=20 > whe I type: Hello.rb > I get the following error: tcsh: Hello.rb: Command not found. When you type a command the shell looks at all the directories in your $PATH environment variable, and for good reason ./ (your current directory) is not included in your path. To execute something in the current directory you need to type `./Hello.rb` --=20 Fred O. Phillips http://fophillips.org BBC7 7572 755F 83E0 3209 504A E4F7 874F 1545 9D41 --Pd0ReVV5GZGQvF3a Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkixuu8ACgkQ5PeHTxVFnUG35gCeJG47PmE0gtzD9MGZH9aps1nE BWIAoMGr4e30NfyOBGZmSJmhWKSV7P9g =NSJs -----END PGP SIGNATURE----- --Pd0ReVV5GZGQvF3a--