Task

Run either the   ls   system command   (dir   on Windows),   or the   pause   system command.




Related task
  Get system command output


 
{ spawn } = require 'child_process'
 
ls = spawn 'ls'
 
ls.stdout.on 'data', ( data ) -> console.log "Output: #{ data }"
 
ls.stderr.on 'data', ( data ) -> console.error "Error: #{ data }"
 
ls.on 'close', -> console.log "'ls' has finished executing."
 