I've just uploaded a new module to my pages at http://Jenda.Krynicky.cz
It should help you create Windows services. If your service only needs to wake up once every N minutes all you need is to tell Win32::Daemon::Simple how to name it, what account to install it under, what parameters you want stored in the registry and a few more options, create the procedure that will do the work and call ServiceLoop(\&doTheJob); exit; The module will make sure your script may be installed with scriptname.pl -install uninstalled with scriptname.pl -uninstall the parameters stored in registry (including the interval) set with -scriptname.pl -parameter=value that your script knows whether it was started from the command prompt, by a doubleclick or by the service manager. It will open a log file for you and allow you to write to it with Log("Message"); # a timestamp will be added LogNT("Message"); # or not It will read the actual values of the parameters and define constants for them, etc. etc. etc. Please let me know if 1) it works for you 2) you find it helpfull 3) you think you would want some new feature 4) if you think something hardcoded should be modifyable 5) ... Jenda == [EMAIL PROTECTED] == http://Jenda.Krynicky.cz == Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Rick Osborne, <[EMAIL PROTECTED]> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]