ok… I got a PHP form that will run a local Perl script, that Perl script SSH’s to a remote machine and run another script.
However PHP doesn’t seem to be running the script…
here is the code
<html>
<head><title>Torres Email Configuation</title></head>
<?php $fname=$_POST'fname'];
$lname=$_POST'lname'];
$uname=$_POST'uname'];
$passwd=$_POST'passwd'];
$domain="@apolloforest.com";
$cmd="perl sshConnect.pl ".$fname." ".$lname." ".$uname." ".$passwd;
echo "executing command ".$cmd."<br><br>";
$passthru($cmd);
?>
</html>
I tried using exec() and popen()… anyone got any ideas???