Jump to content

Execute a system command: Difference between revisions

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}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.