source: other-projects/FileTransfer-WebSocketPair/Themes/themebuilder/bin/phantomjs-1.9.2-windows/examples/child_process-examples.coffee@ 31525

Last change on this file since 31525 was 31525, checked in by ak19, 7 years ago

Nathan provided more stuff: Themes folder contains Sencha's Themebuilder which generates GXT Themes. It includes the .theme and generated .jar files for the project theme.

File size: 549 bytes
Line 
1{spawn, execFile} = require "child_process"
2
3child = spawn "ls", ["-lF", "/rooot"]
4
5child.stdout.on "data", (data) ->
6 console.log "spawnSTDOUT:", JSON.stringify data
7
8child.stderr.on "data", (data) ->
9 console.log "spawnSTDERR:", JSON.stringify data
10
11child.on "exit", (code) ->
12 console.log "spawnEXIT:", code
13
14#child.kill "SIGKILL"
15
16execFile "ls", ["-lF", "/usr"], null, (err, stdout, stderr) ->
17 console.log "execFileSTDOUT:", JSON.stringify stdout
18 console.log "execFileSTDERR:", JSON.stringify stderr
19
20setTimeout (-> phantom.exit 0), 2000
Note: See TracBrowser for help on using the repository browser.