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...
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'])...
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....
I'm trying this out:  var child = spawn('node', args, {cwd: parentDir, stdio: 'ipc'} );   (args is an array of parameters)  but it gives the following error:      TypeError: Incorrect value of stdio option: ipc   This actually wor...
I am creating a small proprietary game server manager in Node.js; currently it runs the game by spawning via child_process:  var server = spawn(cmd, args, { cwd: 'something' });   So long as the manager continues to run I can pipe commands an...
I am trying to do some work on a remote server using ssh--and ssh is called on the local machine from node.js  A stripped down version of the script looks like this:  var execSync = require("child_process").execSync; var command =   'ssh...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.