View Full Version : Daemonizing something in Windows
TheMatrix
December 15th, 2011, 01:59 AM
(I probably sound like a dumbass to some of you, but since I know relatively little about Windows(derp), you're going to have to help me)
I have this program(podwebserver (http://search.cpan.org/perldoc?Pod::Webserver)) that serves Perl documentation locally through a TCP/IP port(8020, although it does not matter). To start it, you need a command line. But since it does not fork(or whatever you call it on Windows), it just sits there and clutters your taskbar. And if you close it on accident, restarting takes about 2 minutes and eats up CPU(indexing).
My question is, is it possible to run such a program in the background? Or is there a Windows equivalent of the Unix /etc/init.d?
Thanks! :)
Commander Thor
December 15th, 2011, 02:58 PM
Could use task scheduler to run it at system startup/logon as the SYSTEM user, which will hide it from view.
(taskschd.msc to get to task scheduler)
Silicate Wielder
December 18th, 2011, 10:40 PM
Windows? that Os has given me nothing but trouble... So, i completely switched to ubuntu, I've only used it for 3 months now and i've learned more about it than i have learned about windows in 3 years XD
I've learned How to use command line, How to setup VPN/IP4 Networking, Advanced hacking/modding techniques. and alot of other things while windows only gave me headaches and random viruses.
I setup Teamviewer 6 on my computer so i can use My sisters computer as an Emergency backup drive when needed. it just requires her to connect to My laptops Mobile Wi-Fi Server.
Commander Thor
December 18th, 2011, 10:47 PM
Windows? that Os has given me nothing but trouble... So, i completely switched to ubuntu, I've only used it for 3 months now and i've learned more about it than i have learned about windows in 3 years XD
I've learned How to use command line, How to setup VPN/IP4 Networking, Advanced hacking/modding techniques. and alot of other things while windows only gave me headaches and random viruses.
I setup Teamviewer 6 on my computer so i can use My sisters computer as an Emergency backup drive when needed. it just requires her to connect to My laptops Mobile Wi-Fi Server.
This has absolutely nothing to do with this thread.
Please do not post if you have nothing to add to the thread, as it's considered spam.
TheMatrix
December 18th, 2011, 11:03 PM
I completely forgot about this thread D:
Windows? that Os has given me nothing but trouble... So, i completely switched to ubuntu, I've only used it for 3 months now and i've learned more about it than i have learned about windows in 3 years XD
I've learned How to use command line, How to setup VPN/IP4 Networking, Advanced hacking/modding techniques. and alot of other things while windows only gave me headaches and random viruses.
I setup Teamviewer 6 on my computer so i can use My sisters computer as an Emergency backup drive when needed. it just requires her to connect to My laptops Mobile Wi-Fi Server.
Dude. I hate Ubuntu. And you're spamming, like Brandon said.
[-]If you had said something good about SUSE I might have accepted it[/-]
As for the task scheduler thingy, it worked! Thanks, Brandon :)
My request now: :locked:
Commander Thor
December 18th, 2011, 11:11 PM
I completely forgot about this thread D:
Dude. I hate Ubuntu. And you're spamming, like Brandon said.
[-]If you had said something good about SUSE I might have accepted it[/-]
As for the task scheduler thingy, it worked! Thanks, Brandon :)
My request now: :locked:
You are very welcome Thomas. :)
vBulletin® v3.8.9, Copyright ©2000-2021, vBulletin Solutions, Inc.