On Apr 17, 2015, at 3:16 PM, 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?

Control-C is the usual way to terminate a program interactively, but the way to 
terminate a program programmatically is usually to send it a signal like 
SIGINT. Does that work for these programs you're trying to control?


-- 
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/B24D2006-19F9-4330-A969-173983BD92B1%40ryandesign.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to