From: ccos Date: 2002-05-11T13:20:47+09:00 Subject: Re: Premature end of script headers > > That's why it is better to use: > #!/usr/bin/env ruby #note the space before ruby > This seems to work everywhere. > > hello, yeah they had it like that in the practical programmer book, and that's why i originally tried it with a space, on my system, usr/bin/env is a file, and not a directory. is it a file in your example as well. what exactly is going on with the space? i guess it's time for me to hit the unix books a little harder. i'm a bit stumped. anybody out there using ruby cgi scripts on os x? thanks much, _c p.s. maybe i'm using the wrong ruby? usr/local/bin has only two files in it ruby and irb. would this be the right ruby? i think it is? hhheeeelllllppppp