child-process Questions
3
Solved
I'm spawning a process with child_process.spawn(). How can I view the exact command line that is executed (including all command-line parameters passed into the spawn function)?
Here's my example ...
Eer asked 16/10, 2018 at 17:3
5
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_...
Devious asked 6/8, 2015 at 21:35
3
For clarify purposes I want to see the exact command Node.js runs versus the shell/cli. Unfortunately I can't seem to find out how...
https://nodejs.org/api/child_process.html#child_process_child_...
Ingaborg asked 24/2, 2016 at 18:11
8
Solved
I'm running a Python script through a child process in Node.js, like this:
require('child_process').exec('python celulas.py', function (error, stdout, stderr) {
child.stdout.pipe(process.stdout);
...
Super asked 11/3, 2014 at 21:51
4
I have written a bash script to carry out some tests on my system. The tests run in the background and in parallel. The tests can take a long time and sometimes I may wish to abort the tests part w...
Valval asked 30/12, 2018 at 19:9
3
I've tried reading subprocess.stdout but node docs clearly state "If the child was spawned with stdio[1] set to anything other than 'pipe', then this will be null." which isn't what I want because ...
Krahling asked 5/2, 2019 at 2:27
2
I have the following code that should open a terminal and run a command:
import { ChildProcess, spawn, ChildProcessWithoutNullStreams, ChildProcessByStdio } from 'child_process';
import { Writable,...
Kordula asked 17/11, 2023 at 11:25
5
can someone help me about how to create multiple child processes which have the same parent in order to do "some" part of particular job?
for example, an external sorting algorithm which is applie...
Emboss asked 18/5, 2009 at 7:38
2
since a while i am trying to reach something that doesn't work out for me so far.
With nodejs, i like to run a interactive sh-command and work with the sh-command output after the command has exit...
Betoken asked 4/9, 2015 at 8:14
5
I'm trying to launch a shell command from Node.js, without redirecting that command's input and output -- just like shelling out to a command using a shell script, or using Ruby's system command. I...
Foxworth asked 19/3, 2012 at 20:13
3
Solved
Created a childprocess using shelljs
!/usr/bin/env node
require('/usr/local/lib/node_modules/shelljs/global');
fs = require("fs");
var child=exec("sudo mongod &",{async:true,silent:true});...
Luralurch asked 25/11, 2013 at 7:49
3
Solved
In my Node app, I'm hooking on the SIGINT signal in order to gracefully stop (using pm2, but this is not relevant here).
My app also execs/spawns a couple of child processes.
I am able to hook on...
Telpherage asked 27/6, 2017 at 19:6
1
As you can see, under Vs2022 process, there are 33 child processes, with a lot of Edge WebView2. It has consumed a lot of memory of my computer. Similar to Nodejs Server-side JavaScript processes....
Mumps asked 10/12, 2021 at 21:7
4
Solved
Node says that cluster.isMaster is deprecated and we should use cluster.isPrimary. But, while isMaster is returning me true without problem, I getting undefined when I try cluster.isPrimary:
const ...
Cumshaw asked 17/10, 2021 at 18:43
31
Solved
When I get the following error:
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:1000:11)
at Process.ChildProcess._handle.onexit (chi...
Cuirbouilli asked 29/12, 2014 at 12:22
3
Solved
We are trying to kill the process of a chrome browser launched with nodes child_process exec command
var process = cp.exec(`"chrome.exe" --app="..."`, () => {}); // working great
But when we ...
Labrecque asked 7/5, 2019 at 6:15
4
Solved
So I have this code and I'm trying to understand the async/await syntax in full depth. The below is the Promise version of the code:
function callToolsPromise(req) {
return new Promise((resolve, ...
Corporator asked 26/10, 2019 at 11:26
2
Solved
I am trying to execute a child process in a different directory then the one of its parent.
var exec = require('child_process').exec;
exec(
'pwd',
{
cdw: someDirectoryVariable
},
function(e...
Bryan asked 19/9, 2013 at 12:18
5
Solved
Is there a way to start a child process without fork(), using execvp() exclusively?
Ferreira asked 11/1, 2019 at 19:8
1
I have an app.js that start another process with child-process.fork();
var childProcess = require('child_process');
var express = require('express');
var app = express();
...
app.set('startedProce...
Faithless asked 28/3, 2014 at 9:29
4
Solved
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 ...
Mccusker asked 16/8, 2014 at 14:2
5
Solved
I'd like to use the execSync method which was added in NodeJS 0.12 but still have the output in the console window from which I ran the Node script.
E.g., if I run a NodeJS script which has the fol...
Willie asked 8/5, 2015 at 23:23
6
Solved
This is node.js.
I have a function that might become an infinite loop if several conditions are met. Untrusted users set these conditions so for the purpose of this question please assume the infi...
Laoighis asked 13/7, 2012 at 18:26
11
Solved
Is it possible to get the child process id from parent process id in shell script?
I have a file to execute using shell script, which leads to a new process process1 (parent process). This proces...
Faenza asked 19/7, 2013 at 10:27
4
This is my script :
var exec = require('child_process').exec;
exec('dir', function(error, stdout, stderr) { // 'dir' is for example
if (error) {
console.error(`exec error: ${error}`);
return;...
Rosado asked 19/7, 2016 at 12:8
1 Next >
© 2022 - 2024 — McMap. All rights reserved.