javascript - How to pause process in node js using spawn -
is there way, how pause process in node js?
const { spawn } = require('child_process'); const process = spawn("run.cmd"); process.stdout.on('data', (data) => { console.log(`stdout: ${data}`); }); process.stderr.on('data', (data) => { console.log(`stderr: ${data}`); }); process.on('close', (code) => { });
i want call somethink this: process.pause()
, process.continue()
.
or system call using cmd?
i using windows.
thank help.
Comments
Post a Comment