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.

send signal: read this

but signal? read this


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -