How to write a service script?

How to write a service script?

am 04.04.2007 14:21:13 von Chandra Ramesh

Hello,

I would like to write a perl script which should be a "service"
(Daemon) running on a Windows machine. How can I do this? Is there any
module which can be used? Basically, this service should look out for
some files in a particular directory and if those files are present, it
must mail me back.

Thanks and Regards,
Ramesh Chandra

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: How to write a service script?

am 04.04.2007 14:24:06 von william.hoopes

Either purchase the PDK so you can write a service that responds to
starts/stops/pauses etc or use svrany from the windows resource kit.



-----Original Message-----
From: activeperl-bounces@listserv.ActiveState.com
[mailto:activeperl-bounces@listserv.ActiveState.com] On Behalf Of
Chandra, Ramesh H.S. IN BLR SISL
Sent: Wednesday, April 04, 2007 8:21 AM
To: activeperl@listserv.ActiveState.com
Subject: How to write a service script?



Hello,

I would like to write a perl script which should be a "service"
(Daemon) running on a Windows machine. How can I do this? Is there any
module which can be used? Basically, this service should look out for
some files in a particular directory and if those files are present, it
must mail me back.

Thanks and Regards,
Ramesh Chandra

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: How to write a service script?

am 04.04.2007 14:25:03 von Joshua.Perlmutter

Why not use the DOS version of 'at' or 'cron' to have it periodically
run a script to check for the files?

Surprisingly, windows has stolen those. ;)

-----Original Message-----
From: activeperl-bounces@listserv.ActiveState.com
[mailto:activeperl-bounces@listserv.ActiveState.com] On Behalf Of
Chandra, Ramesh H.S. IN BLR SISL
Sent: Wednesday, April 04, 2007 8:21 AM
To: activeperl@listserv.ActiveState.com
Subject: How to write a service script?



Hello,

I would like to write a perl script which should be a "service"
(Daemon) running on a Windows machine. How can I do this? Is there any
module which can be used? Basically, this service should look out for
some files in a particular directory and if those files are present, it
must mail me back.

Thanks and Regards,
Ramesh Chandra

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: How to write a service script?

am 04.04.2007 14:29:57 von Bill Luebkert

Hoopes, William @ CSE wrote:
> Either purchase the PDK so you can write a service that responds to
> starts/stops/pauses etc or use svrany from the windows resource kit.

That's srvany rather than svrany
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: How to write a service script?

am 04.04.2007 14:57:04 von BriggsL

You can look in David Roths book Win32 Perl Scripting: Administrator's
Handbook this book has some very good examples. Also some examples can be
found at http://www.roth.net/perl/daemon/


-----Original Message-----
From: activeperl-bounces@listserv.ActiveState.com
[mailto:activeperl-bounces@listserv.ActiveState.com] On Behalf Of Chandra,
Ramesh H.S. IN BLR SISL
Sent: Wednesday, April 04, 2007 8:21 AM
To: activeperl@listserv.ActiveState.com
Subject: How to write a service script?



Hello,

I would like to write a perl script which should be a "service"
(Daemon) running on a Windows machine. How can I do this? Is there any
module which can be used? Basically, this service should look out for some
files in a particular directory and if those files are present, it must mail
me back.

Thanks and Regards,
Ramesh Chandra

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: How to write a service script?

am 09.04.2007 04:44:20 von Foo JH

For the free version, use Win32::Daemon from:
http://www.roth.net/perl/Daemon/

If you like professional support, pay a bit and get the PDK:
http://aspn.activestate.com/ASPN/docs/PDK/7.0/PerlSvc_overvi ew.html

Both are recommended. The second one will give you back your weekends.

Chandra, Ramesh H.S. IN BLR SISL wrote:
> Hello,
>
> I would like to write a perl script which should be a "service"
> (Daemon) running on a Windows machine. How can I do this? Is there any
> module which can be used? Basically, this service should look out for
> some files in a particular directory and if those files are present, it
> must mail me back.
>
> Thanks and Regards,
> Ramesh Chandra
>
> _______________________________________________
> ActivePerl mailing list
> ActivePerl@listserv.ActiveState.com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs