Api reference childprocess - fpdetective/phantomjs GitHub Wiki
Module: child_process
The child_process module allows you to invoke subprocesses and communicate with them via stdin / stdout / stderr. This is useful for tasks such as printing, sending mail, or invoking scripts or programs written in another language (not Javascript).
FIXME: this documentation is incomplete.
See examples/child_process.js.
var child_process = require("child_process");
child_process.spawn("ls", ["-lF", "/rooot"]);