On Sat, 09 Dec 2006 12:15:37 GMT, Steven J Masta <smasta / earthlink.net> wrote:

>Sam Waller wrote:
>
><snip>
>
>> When I try to run a test.rb file I'm getting this in the error.log file:
>> 
>> [Fri Dec 08 13:52:30 2006] [error] [client 127.0.0.1] (2)\xd9\x05i\xb7: exec of
>> '/var/www/site/test.rb' failed
>> [Fri Dec 08 13:52:30 2006] [error] [client 127.0.0.1] Premature end of script headers: test.rb
>
>You'll get that if you have DOS style (CRLF) line endings in your 
>script. Convert to Unix (LF) and see if that fixes it.
>
>Steve

That was the problem: I needed to get rid of the carriange returns (0x0d). I used the 'fromdos' in
Ubuntu's packages. Thanks.