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 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'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 performing an image magick identify command via nodejs child_process.exec. and using the string returned from stdout in my script.  Everything works fine but the call prints the stdout msg on console, if the server is not restarted and the conso...
Is there any possibilitie for creating some kind of a callback within a module created by my own?  My problem is that I have written a module for my application. Within this module is done some task and now my main-app should get a feedback that the...
I use babel-node for my runtimeExecutable in my launch.json as shown in this answer. The reason for doing so is because I am using ES6 imports and breakpoints in VSCode moved around due to transpilation and the source maps.  launch.json  {     "v...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.