jfromaniello / winser

Run a node.js application as a window service using nssm.
270 stars 47 forks source link

the wmic command to get the system version blocks the execution on some xp #21

Closed sdnetwork closed 10 years ago

sdnetwork commented 10 years ago

During the use of winser of some xp machine i have remarked that winser stay blocked at this step.

i have done some test and some search :

like this link : http://forum.sysinternals.com/psexec-hangs-when-running-wmicexe_topic14752_page2.html

a good solution to explictly close the stdin by add "< nul" at the end of :

wmic OS get OSArchitecture => wmic OS get OSArchitecture < nul

and it works on all machine with that.

i have done a pull request if you want.