Thursday, August 21, 2008
Running server side processes via JavaScript with Jaxer
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
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 [...]
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment