472,127 Members | 1,708 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,127 software developers and data experts.

Why Windows doesn't allow to launch daemon/service in command line ??

Why Windows doesn't allow to launch daemon/service in command line ??

Unix/Linux can simply do that....

Nov 17 '05 #1
4 3585
"cyshao" <ad****@263.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Why Windows doesn't allow to launch daemon/service in command line ??


NET start

Tim
Nov 17 '05 #2
humm,

there is a huge difference, in unix IIRC all you have to do to make a
"daemon" is detach the process from the console, in windows it's a litte
different though.
If you want to keep a program resident ( it will run as long as the user is
loged ) just create a thread and terminate the original thread, the program
should continuing runnig and you will get the prompt back

note that I haven;t tested the above but it should work as expected.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"cyshao" <ad****@263.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Why Windows doesn't allow to launch daemon/service in command line ??

Unix/Linux can simply do that....

Nov 17 '05 #3
"cyshao" <ad****@263.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Why Windows doesn't allow to launch daemon/service in command line ??

Unix/Linux can simply do that....


START /B yourdaemon.exe

Nov 17 '05 #4
Thanks.
It seems very interesting :-)
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> дÈëÓÊ
¼þ news:OD**************@TK2MSFTNGP10.phx.gbl...
humm,

there is a huge difference, in unix IIRC all you have to do to make a
"daemon" is detach the process from the console, in windows it's a litte
different though.
If you want to keep a program resident ( it will run as long as the user is loged ) just create a thread and terminate the original thread, the program should continuing runnig and you will get the prompt back

note that I haven;t tested the above but it should work as expected.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"cyshao" <ad****@263.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Why Windows doesn't allow to launch daemon/service in command line ??

Unix/Linux can simply do that....


Nov 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Mark Allison | last post: by
1 post views Thread by Peter Rilling | last post: by
7 posts views Thread by IntraRELY | last post: by
7 posts views Thread by Sunil Varma | last post: by
1 post views Thread by Nikola Skoric | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.