Have you tried child_process.kill

https://nodejs.org/api/child_process.html#child_process_child_kill_signal

child.kill([signal])# 
> <https://nodejs.org/api/child_process.html#child_process_child_kill_signal>
>    
>    - signal String
>
> Send a signal to the child process. If no argument is given, the process 
> will be sent 'SIGTERM'. See signal(7) for a list of available signals.



On Saturday, April 18, 2015 at 6:15:06 PM UTC+2, hammer wrote:
>
> I have several CLI applications which are designed to shut down using 
> cntrl-c which i would like to control using a node application 
> (specifically a node-webmit app). Starting them is easy enough, but 
> stopping them I'm not clear on. I thought maybe ncurses was the answer but 
> all the information I can find about keyboard commands has to do with 
> capturing them rather than sending them to an app. How can this be done in 
> node?
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/138f48e0-8706-4d13-b77b-63f44c564387%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to