From: gabriele renzi Date: 2003-01-06T02:18:21+09:00 Subject: Re: bad interpreter On Mon, 6 Jan 2003 01:25:07 +0900, Arnaudo Massimo wrote: >Hi everibody, ciao :) >i would start a test.rb file. I can if a type: >masarn1@gull:~$ ruby test.rb >hello, World il mio nome � Massimo > >but if i type: >masarn1@gull:~$ ./test.rb >bash: ./test.rb: /usr/local/bin/ruby: bad interpreter: Permission denied > >Now. >masarn1@gull:~$ which ruby >/usr/local/bin/ruby > >masarn1@gull:~$ ls -l /usr/local/bin/ruby >lrwxrwxrwx 1 root root 13 dic 24 19:45 >/usr/local/bin/ruby -> /usr/bin/ruby >masarn1@gull:~$ ls -l /usr/bin/ruby >-rwxr-xr-x 1 root root 3136 mar 20 2002 /usr/bin/ruby >masarn1@gull:~$ > >Why this not work? >Any suggestions? Maybe you imported the file from win/dos , and you're having problems with the termination character, this is a problem with your shell, I supopose