Hi,
After some puzzling I found out why my script with correct shebang line
(#!/usr/bin/env ruby) resulted in

: No such file or directory

when run as ./script.rb on my redhat linux system (it worked ok with "ruby
../script.rb"). It turned out that the newlines in the script file where done
in dos style (0x0d, 0x0a) instead of common unix style (0x0a) and converting
the newlines solved the problem.

Paul