help icon indicating copy to clipboard operation
help copied to clipboard

exec Command failed

Open kuguyu opened this issue 3 years ago • 0 comments

Details

When I start the electron program, the background service test.exe is initialized. I start two test.exe asynchronously. The problem is that when I start the program for the first time, the exec error message "Command failed" is displayed. However, after I close the client, I run the test.exe service again without any problem. Then, after waiting for a while, about four hours or so, I repeat the above question again.

Node.js version

node V14.18.1

Example code

child_process.exec("start /b test.exe", (err, stdout, stderr) => {
    console.log(stdout, "stdout");
    console.log(stderr);
    console.log(err);
})

Operating system

windows10 electron 11.0.1

Scope

Runtime

Module and version

Not applicable.

kuguyu avatar Jun 01 '22 02:06 kuguyu