How to start a child process in GnuCOBOL?
In Node.js, we can use either spawn
or exec
to start child processes:
var proc = require("child_process").spawn("ls", ["-l"]);
proc.stdout.on("data", function (chunk) {
console.log(chunk);
});
// or
var proc = require("child_process").exec("ls -l"], function (err, stdout, stderr) {
...
});
Both of the examples above run ls -l
(list the files and directories). How can the same thing be achieved in COBOL?