I'm having a game spawned as a child process. It all works nice and well with the game's original .exe file. However, I'd like it to execute minimized, and the only way to do it as far as I can tell is to create a windows shortcut (.lnk f...
I'm trying to gzip some data using Node.js...  Specifically, I have data in 'buf' and I want to write a gzipped form of this to 'stream'.  Here is my code:  c1.on('data',function(buf){                 var gzip = spawn('...
I've node app and I use the child_process.exec api which working OK, the issue is that there is maxBuffer thing that we have trouble with hence I want to change it to work with spawn  The code before was like (this code works fine I just need to...
When my node project is started it create a child process , this needed to be done just once so I put this code on the server.js file,  In the child process I execute command like npm install...  my questions is :   Do I need to kill sometime this pr...
I am writing scripts for watching servers status. I can write the code in javascript, but I have to write it in ruby.  In javascript,it can be done using node.js like this.  var iostat = require('child_process').spawn("iostat", ["...
When trying to spawn a node.js child_process from within my electron (previously atom-shell) that runs node path/to/a/packed/file I am getting Cannot find module error because the path is within the app.asar archive (where asar is the tar-like archiv...
When using child_process.spawn in Node, it spawns a child process and automatically create stdin, stdout and stderr streams to interact with the child.  const child = require('child_process'); const subProcess = child.spawn("python",...
I want to execute convert inside Node using spawn. this command runs without any error :  var args = [   'img1.jpg',   'img2.jpg',   '-gravity', 'center',   '-composite', '-' ];  var ls = spawn('con...
Trying to run windows batch script from node.js v12.6.0 and capture its output in real time and in correct order.  But order of stdout and stderr is othen (not always, but in 80% cases) mixed during the tests.  How to keep stdout and stderr in the or...
I'm using node child_process to spawn processes in the system. I can control the data output from stdin, stderr, etc, using callbacks fired on the data, error, end and exit events.  The problem is that when I load the executable like here:   /**...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.