node.js - How to start nodejs server from QT program? -


im working on qt program using nodejs (communicate socket). how can start nodejs server automatic qt application?

i have installed 'forever' module start node server easy.

qt code:

qprocess p; p.start("cmd.exe", qstringlist()<<"/c"<< qapp->applicationdirpath() + "/debugreq/startnode.bat"); p.waitforfinished(); qdebug() << p.readallstandardoutput(); 

i know works because shows script's outputs.

startnode.bat:

forever start server.js 

server works when run clicking startnode.bat file when run qt show outputs server doesnt start. doing wrong?


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -