Michael D Schleif wrote: > I installed Pod::Webserver & executing podwebserver from CLI works OK; > except that it requires keeping open a Command Prompt window. > > So, I thought that I could use Win32::Daemon to create and run it as a > service ;> > > The service installs successfully. > > However, it will NOT run !?!? > > use Win32::Daemon; > > my $name = "podWebServer"; > my %Hash = ( > display => $name, > name => $name, > parameters => 'C:\Perl\bin\podwebserver',
You may need a .exe on the end there. > path => 'c:\perl\bin\perl.exe', > pwd => "", > user => "", > ); > if( Win32::Daemon::CreateService( \%Hash ) ) { > print "Successfully ADDED.\n"; > } else { > warn "Failed to ADD service: " > . Win32::FormatMessage( Win32::Daemon::GetLastError() ) > . "\n"; > } > > > What do you think? What's your error indication ? Does CreateService also start the service or do you need to do that too ? _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs