- or download this
#!/perl -w
...
{
print "Failed to add service: " . Win32::FormatMessage( Win32::Dae
+mon::GetLastError() ) . "\n";
}
- or download this
use Win32::Daemon;
...
{sleep(1);}
Win32::Daemon::State( SERVICE_RUNNING );
- or download this
BEGIN {
open( STDERR, ">>c:/daemon.err" );
warn "$0 started ".localtime().$/;
}
- or download this
#!/perl -w
use strict;
...
close LOG;
}