Node.js - cmd in windows

143 views
Skip to first unread message

jen...@googlemail.com

unread,
Feb 24, 2016, 12:12:23 PM2/24/16
to TiddlyWiki
Hi,
working with the node version of TW for a while I have set up several wikis, each of them with its own localhost port. I decided to start them manually via windows batch files, so every node wiki has its own CMD window. It's helpful to see the server starting (or not) but once running I normally don't need the CMD windows. Can I close them or could that cause any problems? If not, the next question would be: Is there a batch command allowing to close the window after a certain time? 
Thanks
Jo

Eric Shulman

unread,
Feb 24, 2016, 1:27:08 PM2/24/16
to TiddlyWiki
On Wednesday, February 24, 2016 at 9:12:23 AM UTC-8, jen...@googlemail.com wrote:
working with the node version of TW for a while I have set up several wikis, each of them with its own localhost port. I decided to start them manually via windows batch files, so every node wiki has its own CMD window. It's helpful to see the server starting (or not) but once running I normally don't need the CMD windows. Can I close them or could that cause any problems? If not, the next question would be: Is there a batch command allowing to close the window after a certain time?

In Windows, Use the "taskkill" command.  For options, enter "taskkill /?"

enjoy,
-e

Simon Eigeldinger

unread,
Feb 24, 2016, 1:32:13 PM2/24/16
to tiddl...@googlegroups.com
Hi,

though when you close the cmd window the server gets shut down as well.
so if you want to shut it down just hit ctrl+c in the window you want to
close.
i heard there is also a tool to minimize windows which you can't
minimize to the systray.
so those windows might not be in your way.

greetings,
simon
--
Simon Eigeldinger
Follow me on Twitter: http://www.twitter.com/domasofan/
E-Mail: simon.ei...@vol.at
MSN: simon_ei...@hotmail.com
ICQ: 121823966
Jabber: doma...@andrelouis.com

---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus

PMario

unread,
Feb 24, 2016, 2:33:41 PM2/24/16
to TiddlyWiki
Hi Jo,

You could use this little tool: https://www.npmjs.com/package/parallelshell to start all of your servers in one session. ...
If you are not familiar with npm scripts read this: http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/  ... That's where I found parallel shell :)

have fun!
mario
Reply all
Reply to author
Forward
0 new messages