Re: [nodejs] Starting and stopping node.js server from windows batch file

1,124 views
Skip to first unread message

Herman Junge

unread,
May 9, 2013, 7:44:11 AM5/9/13
to nod...@googlegroups.com, nod...@googlegroups.com
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 <pradeepsim...@gmail.com> wrote:

Hi All,

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 nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
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 nodejs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

José F. Romaniello

unread,
May 9, 2013, 7:48:14 AM5/9/13
to nod...@googlegroups.com
notice that you can also put your node application as a windows service



2013/5/9 Pradeep Simha <pradeepsim...@gmail.com>
Reply all
Reply to author
Forward
0 new messages