I am trying to call a Ruby script from a bash script, but no luck.
works just fine, so I know this is not Ruby, but
no. Here's the interesting part:
john@starfire :~/Desktop$ bash ubuntu_cmds.sh (LoadError)h file or directory -- bash_test.rb john@starfire :~/Desktop$ ls *.rb bash_test.rb
Both files are sitting on my desktop.
ruby bash_test.rb
works great.
I'm new to bash scripts, so I'm sure I'm just making a stupid mistake.
I am running Ubuntu 10.10 with Ruby 1.8.7. Thanks in advance for any help or advice.
EDIT: Removed .sh and .rb and started, and make sure chmod +x .sh, and this worked on the first try. I have no idea why. Thanks for the help, however.
eckza source share