Running server side processes via JavaScript with Jaxer
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:
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 can see the application running live.
Source: Ajaxian » Front Page
Original Article: http://feeds.feedburner.com/~r/ajaxian/~3/370072197/running-server-side-processes-via-javascript-with-jaxer
