From: gabriele renzi Date: 2003-01-07T05:42:10+09:00 Subject: Re: bad interpreter >No, i have created and edit where it is: home directory in linux > >The strange thing is that when i exec it from root user, it do not >works: > >masarn1@gull:~$ su >Password: >gull:/home/masarn1# ./test.rb >bash: ./test.rb: /usr/local/bin/ruby: bad interpreter: Permission denied >gull:/home/masarn1 > >Massimo 1)Check where is your ruby interpreter (from the shell : "which ruby"). Maybe you have another one in your path , and no perm over it. *maybe* try #!/path/to/env ruby instead of #!/path/to/ruby as the first line of the script. O il contrario :) (last : [loser@irc ted]$ ./tst.rb bash: ./tst.rb: bad interpreter: No such file or directory [loser@irc ted]$ cat tst.rb #!ur/local/bin/ruby puts "hello world [loser@irc ted]$ Now, the path to ruby is wrong , I don't get your same error, but trying costs nothing :)