in reply to Re^3: forking daemon under windows
in thread forking daemon under windows

Any idea guys?

Replies are listed 'Best First'.
Re^5: forking daemon under windows
by afoken (Chancellor) on Nov 30, 2009 at 17:09 UTC

    Sure. "If it hurts, stop doing it."

    Windows has no concept of daemons, services are the closest thing to a Unix deamon. So maybe you want a service that you can control from your Perl script.

    A second problem with Windows is that it does not know the brilliant concept of "fork() and exec()", but instead has a ridiculously large and ever increasing number of functions and macros that wrap each other and finally start a new process with a huge load of mostly useless parameters. Short, fork() just does not work on Windows, even if newer perl versions have a pretty neat emulation. But it's just an emulation and things go wrong amazingly fast as soon as you expect it to do more than just creating a new instance of your Perl script.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

      OHH!!! NO

      does that mean what I am trying to do is not achivable under Windows?

      Thanks anyways for your reply