child-process Questions

3

Solved

I have a typescript project and rather than using tsc first, I'm just running via ts-node directly. In my code I need to create a child process with fork(). If I run code like child_process.fork(...
Conventionalism asked 29/9, 2018 at 14:40

0

in node, thanks to child_process , I manage to launch visual studio . var vsExe = '"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Professional\\Common7\\IDE\\devenv.exe"'; let commande...
Greece asked 23/3, 2020 at 11:23

2

Solved

I'm writing a simple(ish) application that allows an internal system at work to request a copy process (using rsync) from a remote server to another remote server instigated using a REST call. I'm...
Skein asked 17/3, 2015 at 12:18

3

Solved

For example sake, I'm running the most basic webServer in node (I'm using windows) with the following code (named server.js): var http = require('http'); http.createServer(function (req, res) { ...
Illimitable asked 6/3, 2013 at 20:49

3

Solved

I'm on MacOS, Node v12 and using a child process (exec/spawn/execSync/spawnSync) to execute a shell command which can return more than 8192 characters. However, back in my nodeJS method that invoke...
Forjudge asked 5/12, 2019 at 17:5

1

Solved

I'm trying to understand how the parent and various child OS threads work in a haskell program compiled with GHC -threaded. Using module Main where import Control.Concurrent main = do threadDel...
Truthfunction asked 26/11, 2019 at 18:58

2

I need to know how can i comunicate from a child process to it's parent. I have tried this: In my main app: var spawn = require('child_process').spawn var cp = spawn('path/to/my/process', params)...
Northing asked 25/10, 2015 at 19:59

2

Solved

According to the docs for child_process.spawn I would expect to be able to run a child process in the foreground and allow the node process itself to exit like so: handoff-exec.js: 'use strict'; v...

1

How to see list of child processes created by Fork and Spawn in nodejs ?
Ionia asked 5/7, 2019 at 7:56

4

I understand that PHP supports handling multiple concurrent connections and depending on server it can be configured as mentioned in this answer How does server manages multiple connections does i...
Cochard asked 10/11, 2015 at 7:14

2

Solved

I am having a problem with child-process module, specifically with child.spawn and child.fork. I am relying on the documentation of child_process.fork, which says: This is a special case of the...
Baur asked 2/11, 2015 at 13:26

7

Solved

I have a shell script with three echo statements: echo 'first message' echo 'second message' echo 'third message' I then run this script in node and collect the output via this code: var chi...
Argyres asked 8/5, 2019 at 1:17

3

Solved

I need the process ID of processes created using supervisord for use in a script. Processes spawned by supervisord don't create .pid files in their default directories, if at all. How do I get the...
Freberg asked 1/12, 2012 at 19:20

1

I'm using mocha with Nodejs to test my restApi. When I run mocha, I tell my test to create a child_process and run the API so I can make requests to it. The problem is whenever the test exits (fi...
Casuistry asked 25/4, 2017 at 14:25

3

Solved

I'm trying to have nodejs interact with adventure, an old text based game. The idea is to open adventure as a child process and then play the game by writing to its stdin and placing an event liste...
Luting asked 16/9, 2015 at 2:8

3

Solved

I have written a test script which runs another script to start the server to test. When the tests have completed a SIGKILL message is sent to the server process, however when running the test scri...
Ot asked 25/10, 2015 at 1:45

3

The newer node js has async await, which are really cool because it makes the code look better. I was wondering if it's a good idea to make every class method async, even if it doesn't need ...
Gutbucket asked 14/1, 2019 at 14:23

0

Need help figuring this one out. I am trying to call an external application through child process spawn and after calling the application it requests a password. I then get a fatal error and the ...
Pythagoras asked 11/1, 2019 at 15:48

1

Node version: v10.13.0 I'm trying a very simple test on NodeJS request concurrency involving heavy CPU-calculation. I understand NodeJS is not the best tool for CPU-bound processes, and that a chil...
Defensive asked 20/11, 2018 at 18:46

2

Rust's std::process::Command type demands that process arguments be passed in individually via .arg("-arg1").arg("-arg2") or as a vector of strings via .args(&["-arg1", "-arg2"]). How do you sp...
Wisnicki asked 27/11, 2018 at 11:13

1

Solved

I'm trying to write a little module that uses child_process.spawn to clone a git repo and return a Promise but it fails on me. When I'm using spawnSync it works. Here is the sync code that works....
Sympathin asked 8/11, 2018 at 8:46

5

Solved

I need to create token with Stripe.js in React JS, but I can't find any easy way. In node.js I would do something like this: stripeClient.tokens.create({ card: { number: '4242424242424242', ex...
May asked 10/4, 2016 at 8:16

2

var childProcess = cp.spawnSync(command, args, { cwd: process.cwd(), env: process.env, stdio: 'inherit', encoding: 'utf-8' }); childProcess.output always eq [null, null, null] process.stdout...
Adonic asked 28/2, 2016 at 22:26

2

I'm converting a doc to a pdf (unoconv) in memory and printing (pdftotext) in the terminal with: unoconv -f pdf --stdout sample.doc | pdftotext -layout -enc UTF-8 - out.txt Is working. Now i wan...
Wozniak asked 8/7, 2016 at 18:29

3

Solved

I have a C program that compiles to an executable called myprogram. This is its main function: int main(int argc, char ** argv) { printf("this is a test message.\n"); system("ls"); retur...
Unlade asked 27/9, 2018 at 10:14

© 2022 - 2024 — McMap. All rights reserved.