Phil Peterman
2006-Jul-06 11:54 UTC
[Rails] Trying to get a command line function to work in rails
Hello all, let me preface by saying that I am a complete neophyte.
I have put together a toy application to monitor the domains that we
host. It displays basic information about the domain which I pull
from a database. One of the things that I would like to do is, when
the user drills down on a particular domain, have the system do a dig
and display the returned info in the page. I have tried several
things such as:
def dig
@dig = `dig @ns2.emarketsouth.com #{domain.domain_name}`
end
and none of them seem to work. This type of construct does seem to
work in IRB, but I am obviously missing something. Could someone
give me a nudge in the right direction?
Phil Peterman
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060706/c9de6199/attachment.html
