In Node.js I'm using the exec command of the child_process module to call an algorithm in Java that returns a large amount of text to standard out which I then parse and use. I'm able to capture it mostly, but when it exceeds a certain number...
hopefully I can describe what I'm looking for clearly enough. Working with Node and Python.  I'm trying to run a number of child processes (.py scripts, using child_process.exec()) in parallel, but no more than a specified number at a time (s...
I've used the following code to run some process which is working OK,my question is if there any option to kill this process on demand (by code)       var exec = require('child_process').exec;     var cmd = 'any command';      exe...
I have this piece of code in the GUI part of my electron app which works perfectly alright when run from the terminal. I have packaged the app using 'electron-packager', then I started getting some issue.   Initially, the child process was te...
I want to compute the size of folder (i used readdirp module). For large folder the operation blocks my main thread so my electron application hangs.  So i moved size computation process to forked child.  since i have array of folders, i looping and...
I have a little Grunt task that shells out via node and runs "composer install".  var done = this.async();  var exec = require('child_process').exec; var composer = exec(     'php bin/composer.phar install',     function(error...
I'm trying to run a ssh child process in node.js and control it through my program. My code:  var util   = require('util'); var spawn = require('child_process').spawn; var ssh    = spawn('ssh', ['cloudstudios.ch'])...
This is the code to execute        cp.exec("cc -Wall /tmp/test.c -o /tmp/test", function(e, stdout, stderr) {         if (e) {             var errorstr = "Compilation failed with the following error"+ e.message.toString()...
I use the node child_process API   https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options  var child = child_process.spawn(cmd, val, options);   from the child I use the following   child.stdout.pipe(process....
I have an http server and a forked child process. I want the parent to receive requests and pass to forked process using worker.send. and the worker should be able to process and send the response back to the requester using the same response object....

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.