Wednesday, August 20th, 2008
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:
-
-
<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.













Here’s the full article from Tom including the source to the app:
http://www.codegobbler.com/how-execute-server-side-processes-jaxerprocess