Thursday, August 21, 2008

Running server side processes via JavaScript with Jaxer



Java JavaScript CSS HTML C# Ruby WebService



Tom Kirkpatrick has written about a new API in Jaxer, Jaxer.Process, that allows you to call out to the host operating system. His example has a call out to get the uptime on the machine:
PLAIN TEXT
JAVASCRIPT:




 


<script runat="server-proxy">


function runUptime() {


      // run the uptime and return the output from STDOUT


      return Jaxer.Process.exec("/usr/bin/uptime");


}


</script>


 





You [...]

0 comments: