2015-12-19 64 views

回答

1

使用BufferedProcess產生你想要的任何二進制文件。

{BufferedProcess} = require 'atom' 

command = 'ps' 
args = ['-ef'] 
stdout = (output) -> console.log(output) 
exit = (code) -> console.log("ps -ef exited with #{code}") 
process = new BufferedProcess({command, args, stdout, exit})