Mariano Cunietti wrote:
Hi, I want to develop a PHP+Perl interface to manage a DNS and a few Mail servers. I need to interact with other machines on the same network.
Which is the best way to execute commands invoked from the web interface, pass them to perl and then let them be executed on local and remote machines? How do PHP and Perl communicate? Via the "system/exec" function?
Example: from a web panel I want to modify MX records for my DNS zones, then update transport/mailertable files on remote machines.
Should I put public keys in /root/.ssh/authorized_keys on all machines and then exec a "ssh [EMAIL PROTECTED] ....."? Isn't there a more *elegant* solution?
Yes, I'd not mix the languages. Just use Perl for all of it, that will instantly make it 100% easier to develop.
The modules
Net::SSH or Expect may help. Depending on what you need to ssh in and run there may be other solutions.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>