in reply to win32::daemon - problem reading file in the service

It sounds simply like your script is dieing. Put this at the top of your script:

BEGIN { open STDERR, ">> c:/script.log" }

then try to start your script and look at the errors that get recorded in that file. Note that there might well be other ways to see what was written to STDERR by a Win32 service, but I don't see much point in trying to look such up since this solution is so simple.

- tye        

Replies are listed 'Best First'.
Re^2: win32::daemon - problem reading file in the service (log)
by dzon (Novice) on Mar 28, 2007 at 16:35 UTC
    It works ...thank you very much!

    It reads the config text file without any problems now - probably the error was, that the STDERR wasn't redirected anywhere (which could be a problem with a service running in background)

    btw: what means the BEGIN{ } syntax?

    jan