Brian Candler wrote:
> Don't bother. The operating system will close all open filehandles when
> the process terminates.
Thanks. With the same script I have another issue. When I execute the
script from the command line it runs flawlessly, but when it's executed
from cron I get the following error in my script: no such file to load
-- mysql
The line where the error occurs is:
r = Rate.find(:first)
My crontab looks like this:
* * * * * /usr/local/bin/ruby
/home/mischa/railsapps/aexscript/periodic/get_rate.rb production >>
/home/mischa/railsapps/aexscript/periodic/get_rate.log
So I use full path to everything.
Any ideas??
--
Posted via
http://www.ruby-forum.com/.