Does anyone know how can I test in a program whether it has been 
started as a service (I am using Win32::Daemon) or from the 
command line? I'd like to
        1) Fake the Service Manager's message during startup
        2) Print the loggin messages to STDOUT as well as the log file 
when running from cmdline.

Being able to get the name of the process that started by program 
would be enough. Even if you only know how to do that in C.

Thanks, Jenda


=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain
I can't find it.
                                        --- me
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to