In a nutshell, learn about signals, for example SIGINT, and listen to it inside 
your script.

Sent from my iPhone

On 09-05-2013, at 5:08, Pradeep Simha <[email protected]> wrote:

> Hi All,
> 
> I am looking for a way to stop a node.js's server from a batch file. For eg: 
> I have a batch file calledstart.bat in which I am starting node.js server 
> like this node c:\test.js, so this will start server on port 8080, similarly 
> I would like to stop that test.js server from another batch file 
> calledstop.bat. How can I do this? So is this possible? If yes, can anyone 
> guide me? 
> 
> Since I am new to JS, please excuse me if this is a basic question.
> 
> With Regards,
> Pradeep
> -- 
> -- 
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> 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 post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>  
> --- 
> 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].
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to