Sha256: ced5fcb992defa25e162c734282007b4b4ccddb5548f8c40bd171b37bc4fb4b6
Contents?: true
Size: 549 Bytes
Versions: 17
Compression:
Stored size: 549 Bytes
Contents
{spawn, execFile} = require "child_process" child = spawn "ls", ["-lF", "/rooot"] child.stdout.on "data", (data) -> console.log "spawnSTDOUT:", JSON.stringify data child.stderr.on "data", (data) -> console.log "spawnSTDERR:", JSON.stringify data child.on "exit", (code) -> console.log "spawnEXIT:", code #child.kill "SIGKILL" execFile "ls", ["-lF", "/usr"], null, (err, stdout, stderr) -> console.log "execFileSTDOUT:", JSON.stringify stdout console.log "execFileSTDERR:", JSON.stringify stderr setTimeout (-> phantom.exit 0), 2000
Version data entries
17 entries across 17 versions & 2 rubygems