title: executing a shell script on a server from a web page
body: <p>I have a program on a remote server that publishes data onto the database.
  This program has to be executed with root permissions for it to function properly.
  and i have to start its execution from a webpage. i.e., if an event fires, this script's execution should start( for now consider the event as click of a button)</p>
  
  <p>I know this can be done using php or other server side scripting languages but I am forced to use javascript or other related technologies like AJAX, jquery etc..</p>
  
  <p>I was concerned about the security so this is what i planned.</p>
  
  <p><strong>I will ssh into the server using a key pair,
  then have a shell script that takes control as root and start execution of the program.</strong></p>
  
  <p>I don't want to parse or print any output on my webpage.
  just starting the script would do the job.</p>
  
  <p>can someone help me out with this please..</p>
  
  <p>Thanks!</p>