title: Is there a php script that will ssh into the main server and run a shell script with passed parameters?
body: <p>I have a form page with 4 text fields on an intranet webpage, when I hit submit on the page I want it to pass the fields as parameters to a shell script on the remote server.</p>
  
  <p>Example:<br>
  Computer A accessing a web page hosted on Computer B<br>
  Computer A enter 1 2 3 4 clicks submit on page<br>
  <br>
  I now want Computer B to run 'sh Test.sh 1 2 3 4'<br><br>
  I tried using shell_exec and I cant seem to get it to work</p>