2

My shell script (my_shell.sh) won't run the ruby script (ruby_script_1.rb) in it.

my_shell.sh:

#!/bin/sh
# Invoke the ruby script here

./ruby_script_1.rb

It could not find where the ./ruby_script_1.rb is, thus errors:

# sudo my_shell.sh

: No such file or directory.

My ruby script is permission of 777. Any help is appreciated.

7ochem
  • 280
  • Full path to ruby script: I am already inside the directory where a ruby script resides, not sure why full path is needed.
  • – user1972031 Jul 05 '14 at 21:07
  • I am already in the directory where the ruby script is residing, why the full-path is needed? 2) My ruby script has the following first line: #!/usr/bin/env ruby 3) Permission of ruby script: -rwxrwxrwx 1 root root 10205 Jul 5 11:37 ruby_script_1.rb
  • – user1972031 Jul 05 '14 at 21:15