[Solution found!] 不要使用exec。使用spawn哪个是EventEmmiter对象。然后,您可以在事件发生时收听stdout/ stderrevent(spawn.stdout.on('data',callback..))。
確定! 回上一頁