child-process Questions
2
Solved
I have two separate node applications. I'd like one of them to be able to start the other one at some point in the code. How would I go about doing this?
Personage asked 18/9, 2013 at 0:57
2
Solved
How do i make sure all child_process are killed when the parent process is killed.
I have something like the below one.
Even when the node process is kill i see that FFMPEG continues to run and ...
Dillingham asked 16/8, 2013 at 14:35
1
Solved
I'm developing a Launcher application for games. Much like XBOX Dashboard in XNA. I want to open back my program when the process which it started(the game) exits. With a simple game this is workin...
Pender asked 9/8, 2013 at 11:30
1
Hello I want to send to the child_process, for example, ping 8.8.8.8-t, that is, an infinite number of ping. And some of the iterations I want to stop this command and execute a new, but in this ca...
Kirsch asked 15/7, 2013 at 7:16
1
I'm having a weird problem with child process in node.js I have some code running in a child process like this, but the child process exits with code 0 in between lines of synchronous code.
var f...
Genome asked 10/7, 2013 at 14:7
3
Solved
I'm trying to launch VLC in "dummy" mode from a Node.js server script, however using child_process.spawn('vlc',['-I dummy']) produces a new console window for VLC's output when using Windows. Is th...
Jumbuck asked 14/5, 2011 at 9:49
2
Solved
is there a way to pass extra arguments to the callback function when i use
child_process.exec(cmd,callback) ?
According to the documentation, the callback function only receive error,stdout,sterr....
Richie asked 12/4, 2013 at 12:36
1
I am using nodejs for a web server which decodes the GET params and returns data in some encoded format. The decode/encode are done using the crypto module of nodejs, which seems to be synchronous....
Pelvic asked 30/5, 2012 at 11:2
0
ANSWER in this previous question:
https://mcmap.net/q/25577/-how-to-make-child-process-die-after-parent-exits
It was not checked and quiet down, so I missed it. Already asked to be posted here
I a...
Curfew asked 7/3, 2013 at 16:7
1
Solved
This is the code to execute
cp.exec("cc -Wall /tmp/test.c -o /tmp/test", function(e, stdout, stderr) {
if (e) {
var errorstr = "Compilation failed with the following error"+ e.message.toStrin...
Lead asked 14/1, 2013 at 13:52
1
Would you kindly help with the following example of a node exec command run with grunt?
The echo command is executing, and hello-world.txt is created, but the grunt.log.writeln commands in the cal...
Residency asked 19/12, 2012 at 16:57
1
Solved
I have a script that I want to run from another one. The problem is that the child script (process) needs an user input before it continues.
var child = spawn('script');
child.stdin.setEncoding('ut...
Elizabetelizabeth asked 1/12, 2012 at 2:12
1
Solved
Is it possible to make sure that processes spawned with node.js child_process will be killed when the parent is killed?
Here's an example script
var spawn = require('child_process').spawn;
var lo...
Acquisitive asked 9/8, 2012 at 21:12
2
Solved
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 ma...
Heydon asked 11/4, 2012 at 19:43
1
Solved
I am trying to make a Node.js script to analyse disk usage. For this, I shell out to du, but I am having trouble figuring out how to read the output from the child process line by line. Here's what...
Vogler asked 19/4, 2012 at 14:3
0
I have Node.js app that spawns processes using child_process.spawn(my_command). I use it to run commands like sudo my-app.
When the sudo process starts, it starts my-app. So I end up with a ...
Urethrectomy asked 13/3, 2012 at 13:7
2
Solved
I am unable to trap a signal when running in a child / background process.
Here is my simple bash script:
#!/bin/bash
echo "in child"
trap "got_signal" SIGINT
function got_si...
Obscurity asked 13/4, 2011 at 0:26
1
Solved
I've seen monitoring programs either in scripts that check process status using 'ps' or 'service status(on Linux)' periodically, or in C/C++ that forks and wait on the process...
I wonder if it i...
Joann asked 20/7, 2011 at 22:43
4
I am trying to detect when an installation program finishes executing from within a Python script. Specifically, the application is the Oracle 10gR2 Database. Currently I am using the subprocess mo...
Shillong asked 23/5, 2011 at 20:18
1
Solved
Microsoft played safe here. In their article, "Creating a Child Process with Redirected Input and Output", they are saying:
The remaining open handles are cleaned up when this process terminates...
Shufu asked 5/7, 2011 at 10:19
2
Solved
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', ['clouds...
Displode asked 13/3, 2011 at 22:3
2
Solved
My python code spawns the child process, and it prints out messages both stdout and stderr.
I need to print them differently.
I have the following code to spawn child process and get the stdout res...
Applause asked 26/1, 2011 at 14:22
5
Solved
Basically the child process runs indefinitely until killed in the background, and I want to clean it up when my program terminates for any reason, i.e. via the Taskmanager.
Currently I have a whil...
Padgett asked 10/3, 2009 at 20:33
3
Solved
I have some Perl code that executes a shell script for multiple parameters, to simplify, I'll just assume that I have code that looks like this:
for $p (@a){
system("/path/to/file.sh $p&");
}...
Teleology asked 26/5, 2009 at 16:14
© 2022 - 2024 — McMap. All rights reserved.