Sha256: 3d52e94e892e0857fbe7dd2e13fbc684e25774c85d59680f0c8a487af9726b8b

Contents?: true

Size: 672 Bytes

Versions: 17

Compression:

Stored size: 672 Bytes

Contents

var spawn = require("child_process").spawn
var execFile = require("child_process").execFile

var child = spawn("ls", ["-lF", "/rooot"])

child.stdout.on("data", function (data) {
  console.log("spawnSTDOUT:", JSON.stringify(data))
})

child.stderr.on("data", function (data) {
  console.log("spawnSTDERR:", JSON.stringify(data))
})

child.on("exit", function (code) {
  console.log("spawnEXIT:", code)
})

//child.kill("SIGKILL")

execFile("ls", ["-lF", "/usr"], null, function (err, stdout, stderr) {
  console.log("execFileSTDOUT:", JSON.stringify(stdout))
  console.log("execFileSTDERR:", JSON.stringify(stderr))
})

setTimeout(function () {
  phantom.exit(0)
}, 2000)

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
hooch-0.4.2 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/examples/child_process-examples.js
hooch-0.4.1 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/examples/child_process-examples.js
hooch-0.4.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/examples/child_process-examples.js
hooch-0.3.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/examples/child_process-examples.js
hooch-0.2.1 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/examples/child_process-examples.js
hooch-0.2.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/examples/child_process-examples.js
hooch-0.1.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/examples/child_process-examples.js
hooch-0.0.8 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/examples/child_process-examples.js
hooch-0.0.7 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/examples/child_process-examples.js
hooch-0.0.6 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/examples/child_process-examples.js
entangled-0.0.16 spec/dummy/public/node_modules/phantomjs/lib/phantom/examples/child_process-examples.js
entangled-0.0.15 spec/dummy/public/node_modules/phantomjs/lib/phantom/examples/child_process-examples.js
entangled-0.0.14 spec/dummy/public/node_modules/phantomjs/lib/phantom/examples/child_process-examples.js
entangled-0.0.13 spec/dummy/public/node_modules/phantomjs/lib/phantom/examples/child_process-examples.js
entangled-0.0.12 spec/dummy/public/node_modules/phantomjs/lib/phantom/examples/child_process-examples.js
entangled-0.0.11 spec/dummy/public/node_modules/phantomjs/lib/phantom/examples/child_process-examples.js
entangled-0.0.10 spec/dummy/public/node_modules/phantomjs/lib/phantom/examples/child_process-examples.js