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