Execute a system command: Difference between revisions
Content deleted Content added
No edit summary |
|||
Line 241:
{{works with|OpenCOBOL}}
<lang cobol>CALL "SYSTEM" USING BY CONTENT "ls"</lang>
=={{header|CoffeeScript}}==
{{works with|Node.js}}
<lang coffeescript>
{ 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."
</lang>
=={{header|Common Lisp}}==
|