child-process Questions

5

I've node application which done spawn(child process) to and application, the application have host and port: var exec = require('child_process').spawn; var child = exec('start app'); console.log(...
Wylen asked 29/10, 2015 at 14:28

2

I'm currently working on my web interface for git. Accessing git itself by child_process.spawn. Everything is fine while there is simple "command -> response" mechanism, but I cannot understand wha...
Vanburen asked 2/11, 2015 at 21:49

4

NodeJS batch multi threading processing - child processes in a pool. I know a child process is a process, not a thread. I used wrong semantics, because most people know what your intent is when yo...
Journalistic asked 18/9, 2014 at 11:43

3

Solved

I have a nodejs parent process that starts up another nodejs child process. The child process executes some logic and then returns output to the parent. The output is large and I'm trying to use pi...
Coextensive asked 9/3, 2015 at 16:21

1

Solved

I am working with some legacy TCP server code that works with sockets directly as it was written in .NET 2.0 and earlier. The server has a feature to 'stop' and 'start' accepting client connections...
Hunk asked 8/2, 2016 at 22:29

1

Solved

I am creating some child_processes with Node.js (require('child_process')) and I want to ensure that the stdout/stderr from each child_process does not go to the terminal, because I want only the o...
Kelvinkelwen asked 5/2, 2016 at 4:34

1

The first issue is that there is some conflict error when you do the following from your app.js file and hit F5 to debug: var cp = require('child_process'); var node2 = cp.fork('./app_FORK.js'); ...
Flexuous asked 31/1, 2016 at 3:1

2

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 c...
Discourse asked 20/1, 2016 at 12:2

1

Solved

I would like to use custom stream to handle child_process.spawn stdio. For example const cp = require('child_process'); const process = require('process'); const stream = require('stream'); var ...
Dogged asked 23/1, 2016 at 18:41

1

I'm trying to find the run time of the fork() system call. Each child process needs to immediately exit, and the parent needs to wait() on each child before creating the next. I also want to use th...
Maltz asked 21/1, 2016 at 6:46

1

Solved

I am working in node, as it happens via a visual studio code extension. I successfully create child processes and can terminate them on command. I am looking to run code when the process unexpected...
Dermoid asked 19/1, 2016 at 16:0

1

Solved

I have a Node.js process (not a server) that forks N child processes. At some point there might be more than 50 CPs. So I started thinking that if process.send (IPC) is truly blocking then this mig...
Yonina asked 6/1, 2016 at 7:11

3

Solved

I am building a site with Jekyll that I am hosting on GitHub Pages. I would like to be able to set the JEKYLL_ENV to 'production' (JEKYLL_ENV=production) when I deploy to GitHub Pages so I can do s...
Croak asked 5/1, 2016 at 3:40

2

I want to run bash script with params in node js child_process.exec() In doc is String The command to run, with space-separated arguments, but child.exec("cat path_to_file1 path_to_file2") do...
Indisposition asked 17/12, 2015 at 14:51

1

Solved

If we fork a child_process in Node, how can we pass node parameters to the child_process? https://nodejs.org/api/child_process.html Specifically I would like to spawn ~20 processes, and would lik...
Nigelniger asked 4/12, 2015 at 19:59

1

My Use-case is as follows: I make plenty of rest API calls from my node server to public APIs. Sometime the response is big and sometimes its small. My use-case demands me to stringify the response...
Mediative asked 21/11, 2015 at 10:57

1

Solved

When I call .spawn to make a new child process in Node.js, does this take advantage of multi-core CPUs? Reference: https://nodejs.org/api/child_process.html
Calesta asked 28/10, 2015 at 2:16

2

I'm attempting to run a simple ssh command, via nodejs child_process. when i run the command via nodejs code, it fails saying the command that i sent to the server was not found. when i run the sam...
Faubion asked 27/12, 2014 at 19:20

2

Solved

The fs.createReadStream() and fs.createWriteStream() only support file paths but I need to read (or write) from a file descriptor (passed to/from a child process). Note I need Streams, so fs.open/...
Mainsheet asked 5/7, 2014 at 1:21

1

I have a node.js app, and I want to spawn child processes using the code listed below. When I run this app locally, each of the 'ps' commands nicely trigger the close and exit events. On our cloud...
Daladier asked 9/12, 2014 at 14:21

1

Solved

I am trying to do the equivalent of the following using Python subprocess: >cat /var/log/dmesg | festival --tts & [1] 30875 >kill -9 -30875 Note that I am killing the process group (as...
Dominga asked 26/8, 2015 at 9:21

1

Solved

I want to use a child process to execute a Java file. The problem I do not want this code to only have read and write permissions in a specific folder. So I was thinking of executing the code as sp...
Linares asked 1/8, 2015 at 9:47

1

Solved

I am using child_process.spawn() to start a script from my Node.JS application running on Ubuntu. As far as I know, standard forked or spawned *nix processes don't generally die when the parent die...
Particle asked 8/6, 2015 at 12:8

2

Solved

I'm writing a small test that starts a daemon process and tests it e.g: let server = Command::new("target/debug/server").spawn(); // do some tests server.kill(); The typical way to fail a test...
Nathalie asked 29/5, 2015 at 19:52

1

Solved

From the IPython Architecture Overview documentation we know that ... The IPython engine is a Python instance that takes Python commands over a network connection. Given that it is a Python in...
Distressful asked 28/5, 2015 at 21:51

© 2022 - 2024 — McMap. All rights reserved.