On 11/3/06, eddieroger <eddieroger / gmail.com> wrote: > I am toying around with the concept of dynamic configuration files for > Asterisk (http://www.asterisk.org), and I was wondering if its possible > to have a dynamic file that's executed on read. Basicly, when executed, > the script would output a file that Asterisk is happy with, and > preferably the file could have the extension ".conf", but inside would > be Ruby code. Is this possible, or am I pipe dreaming? Thanks. Something like: File.open("foo.conf", "wb") do |cf| cf.puts <<-EOS puts "Hello, Ruby." EOS end load "foo.conf" ? -austin -- Austin Ziegler * halostatue / gmail.com * http://www.halostatue.ca/ * austin / halostatue.ca * http://www.halostatue.ca/feed/ * austin / zieglers.ca