473,396 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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 3673
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: darknessfish | last post by:
Ok, I'm trying to write a basic scp scheduler, which will occasionally scan a directory, and use cygwin's scp.exe to copy the files to a Unix box. After various problems, the set up I've got now...
6
by: Mark Allison | last post by:
Hi, I have an application that I want to be to run in Console mode and GUI mode. If no params are entered, I want the GUI fired up, if params are entered, then go into console mode. I believe...
1
by: Peter Rilling | last post by:
I have an EXE that I would like to be able to run from either the command-line or as a windows service. Is there a way that I can tell which context the program is running in? Basically, if it...
7
by: IntraRELY | last post by:
I am using the following command to launch and .NET VB Executable, which is a simple Windows Form (printCheckClient.exe). I am using a HyperLink Control and works perfect....
7
by: Sunil Varma | last post by:
Hello all, I wrote a Windows Service in VC.NET 2005 I want to debug the solution. I tried as mentioned in the following link. ...
0
by: Daniel | last post by:
C# windows service freezes on System.Diagnostics.Process.Start(info) When I launch PSCP from a C# windows service and launch pscp 0.53 there are no issues. but when I use C# windows service to...
1
by: Nikola Skoric | last post by:
I wrote a simple UNIX daemon (using 2 forks) which does a simple job: it executes a function, waits for some time, and then executes it again. Now I'd like to port that to Windows. How do I create...
6
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.