child-process Questions
2
Solved
This is similar to this question, but I wanted to flesh it out a bit. (I'm new here, if I should instead do a "bump" answer on the previous question instead, please let me know.)
In WinDBG, I can ...
Olympiaolympiad asked 21/4, 2009 at 4:30
2
Solved
I'm using Shipit for deployment.
On deploy, Shipit checks out the current Git Sha, to a tmp directory, then I run npm install followed by gulp build, then proceed with the deploy.
Shipit uses Orch...
Dichromaticism asked 1/5, 2015 at 14:25
1
Solved
NodeJS server with a Mongo DB - one feature will generate a report JSON file from the DB, which can take a while (60 seconds up - has to process hundreds of thousands of entries).
We want to run ...
Havildar asked 27/4, 2015 at 13:13
1
Solved
When I execute the (made up and ridiculous) command banana from bash I get the following error:
bash: banana: command not found
But if I execute banana in a child_process.spawn in Node.js, I get...
Neoplasty asked 14/4, 2015 at 5:7
0
I'm using chalk to colour the output from from my command-line node application. Normally like this:
console.log(chalk.red(error));
However, I need to pipe stdout from a child process, and colou...
Broek asked 31/3, 2015 at 9:3
3
Solved
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...
Corporeity asked 17/1, 2014 at 14:54
1
Solved
Let's say I have a parent.js containing a method named parent
var childProcess = require('child_process');
var options = {
someData: {a:1, b:2, c:3},
asyncFn: function (data, callback) { /*do o...
Nitrochloroform asked 20/1, 2015 at 4:11
1
I want to open google chrome with nodejs, but I get this error (I used execFile and spawn),
code
var execFile = require('child_process').execFile,
spawn = require('child_process').spawn,
spawn(...
Geraldgeralda asked 20/5, 2014 at 15:43
3
Solved
I want to initiate a process from my python script main.py. Specifically, I want to run the below command:
`nohup python ./myfile.py &`
and the file myfile.py should continue running, even a...
Orb asked 23/12, 2014 at 17:3
2
Solved
I'm playing around with node streams and child processes. So I want to emulate next shell command with pipes:
ps au | grep ssh
So I wrote next code:
var spawn = require('child_process').spawn;
...
Exeter asked 17/11, 2014 at 19:2
1
Solved
I am planning to run multiple processes using supervisor and please find my supervisord.conf file below:
[supervisord]
[program:bash]
command=xyz
stdout_logfile =/tmp/bash.log
redirect_stderr=tru...
Pigeontoed asked 8/8, 2014 at 4:4
2
Solved
We have an app built using nodejs, express and child_process.spawn. One requirement is that we need to spawn a process at runtime and capture it's output and present it to the user.
We have that ...
Haversine asked 3/12, 2013 at 17:0
1
Solved
In Node, I'm using a module (GM) and noticed that it uses spawn from the child_process module to pass arguments to GraphicMagick's convert executable.
I'm passing user-submitted information to GM...
Stanfield asked 16/5, 2014 at 14:19
2
Solved
I have some code runing in a child process in a node program like so:
try{
var data = fs.readFileSync(urlPath, {"encoding":"utf8"});
} catch (err) {
console.log("Error reading url file...");
th...
Quotient asked 10/7, 2013 at 13:44
1
Solved
How to transfer/stream big data from/to child processes in node.js without using the blocking stdio?
I have a bunch of (child)processes in node.js that need to transfer large amounts of data.
When I read the manual it says the the stdio and ipc inferface between them are blocking, so that won't d...
Larrigan asked 5/7, 2014 at 1:26
1
Solved
I am trying to get two long running node.js processes to communicate - a parent and a child - using pipes and Node's child-process module. I want the child to be able to send data back to the paren...
Wadai asked 30/6, 2014 at 12:40
2
Solved
Inside my worker file I listen for a data callback. someLib is node-serialport.
process.on('message', function(msg) {
someLib.on('data', function(data){
console.log('some data');
process.send(d...
Emaemaciate asked 8/6, 2014 at 20:23
3
Solved
I spawned the following child: var spw = spawn('ping', ['-n','10', '127.0.0.1']) and I would like to receive the ping results on the client side (browser) one by one, not as a whole.
So far I trie...
Incipit asked 21/2, 2014 at 12:43
1
Solved
I have a node.js project which does many things, it spawns child processes, it opens an http and socket.io server, etc..
When I run it from the console, closing it with Ctrl+C, it just hangs.
From...
Floorwalker asked 18/2, 2014 at 20:3
4
Solved
Disclaimer
I am well aware that PHP might not have been the best choice in this case for a socket server. Please refrain from suggesting
different languages/platforms - believe me - I've hear...
Ebarta asked 2/4, 2012 at 12:28
3
Solved
I just started using Node.js and I'm now trying to make my script run in the background every 10 seconds like a daemon waiting for something to do, when there is something to run from the database ...
Panatella asked 30/1, 2014 at 15:51
1
Solved
I've built a portal, one of the pages lists releases from Octopus Deploy. However, some information needed about each release is held inside its zip in a data store (shared drive).
I currently get...
Antevert asked 21/1, 2014 at 10:16
1
Solved
I'm currently making a command line app in C in which many child process is created. So I need to debug this children code. I have created a child process on Xcode as follow. (see the break point a...
Jacki asked 23/11, 2013 at 10:23
1
Solved
In a node script, I have spawned a child process which executes a batch file run.bat , to terminate the program started by the batch-file i need to send ctrl+c combination to the child process , it...
Hocuspocus asked 16/10, 2013 at 15:1
1
Solved
I am trying to run a command inside a async.forEach loop using ChildProcess.exec in my node job. here is the code
async.forEach( docPaths, function(docPath, callback) {
var run = [];
// some c...
Zarathustra asked 2/10, 2013 at 20:25
© 2022 - 2024 — McMap. All rights reserved.