Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > How do I run a Perl script as a Windows XP Service?

Reply
Thread Tools

How do I run a Perl script as a Windows XP Service?

 
 
janicehwang1325@yahoo.com
Guest
Posts: n/a
 
      05-31-2006
Hi all,


I would like to run my Perl script as the service in Windows XP. How do
achieve that? I heard that using Microsoft Management Console can
achieve that. However, read thru the help file of the MMC, i still do
not get how to create it. Do someone know how to start from the very
beginning step?

 
Reply With Quote
 
 
 
 
Thomas Kratz
Guest
Posts: n/a
 
      05-31-2006
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> Hi all,
>
>
> I would like to run my Perl script as the service in Windows XP. How do
> achieve that? I heard that using Microsoft Management Console can
> achieve that. However, read thru the help file of the MMC, i still do
> not get how to create it. Do someone know how to start from the very
> beginning step?
>


I don't know what is meant by the answer given under:

http://tinyurl.com/rd6vy

I have no idea how to create a service from a script with MMC.

You may have better success with either googling for 'srvany.exe' from M$
or better IMHO using the module Win32:aemon to create a native service.

Have a look at Win32:aemon::Simple. It sits on top of Win32:aemon to
make the process much easier for you.

Thomas

--
$/=$,,$_=<DATA>,s,(.*),$1,see;__END__
s,^(.*\043),,mg,@_=map{[split'']}split;{#>J~.>_an~>>e~......>r~
$_=$_[$%][$"];y,<~>^,-++-,?{$/=--$|?'"':#..u.t.^.o.P.r.>ha~.e..
'%',s,(.),\$$/$1=1,,$;=$_}:/\w/?{y,_, ,,#..>s^~ht<._..._..c....
print}:y,.,,||last,,,,,,$_=$;;eval,redo}#.....>.e. r^.>l^..>k^.-
 
Reply With Quote
 
 
 
 
zentara
Guest
Posts: n/a
 
      05-31-2006
On 31 May 2006 01:12:53 -0700, "(E-Mail Removed)"
<(E-Mail Removed)> wrote:

>Hi all,
>
>
>I would like to run my Perl script as the service in Windows XP. How do
>achieve that? I heard that using Microsoft Management Console can
>achieve that. However, read thru the help file of the MMC, i still do
>not get how to create it. Do someone know how to start from the very
>beginning step?


Personally I don't use Win32, but check out these:

http://perlmonks.org?node_id=522586

http://perlmonks.org?node_id=251168

http://perlmonks.org?node_id=338496

or do yourself a favor, and ask there.



--
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html
 
Reply With Quote
 
nmaier@unimax.com
Guest
Posts: n/a
 
      05-31-2006
ActiveState Perl Dev Kit can do this. Granted it'll cost a little
money.

http://www.activestate.com/Products/Perl_Dev_Kit/?mp=1

 
Reply With Quote
 
janicehwang1325@yahoo.com
Guest
Posts: n/a
 
      06-01-2006
Thanks for the reply. I had tried to implemet Win32:aemon::Simple
into my script. However, the service could not be started. I dunno what
is the reason. I try to debug and found out that the program and be
runned if i run it manually in cmd.exe using perl client.pl. however,
the program will close when i close cmd.exe.

I wil trying the other websites that others give. Anyway, thanks a lot.
I fould out that MMC is just for CGI- Perl script whereby you can map
the CGI script to the IIS and use MMC to implement it as service.

Thomas Kratz wrote:
> (E-Mail Removed) wrote:
> > Hi all,
> >
> >
> > I would like to run my Perl script as the service in Windows XP. How do
> > achieve that? I heard that using Microsoft Management Console can
> > achieve that. However, read thru the help file of the MMC, i still do
> > not get how to create it. Do someone know how to start from the very
> > beginning step?
> >

>
> I don't know what is meant by the answer given under:
>
> http://tinyurl.com/rd6vy
>
> I have no idea how to create a service from a script with MMC.
>
> You may have better success with either googling for 'srvany.exe' from M$
> or better IMHO using the module Win32:aemon to create a native service.
>
> Have a look at Win32:aemon::Simple. It sits on top of Win32:aemon to
> make the process much easier for you.
>
> Thomas
>
> --
> $/=$,,$_=<DATA>,s,(.*),$1,see;__END__
> s,^(.*\043),,mg,@_=map{[split'']}split;{#>J~.>_an~>>e~......>r~
> $_=$_[$%][$"];y,<~>^,-++-,?{$/=--$|?'"':#..u.t.^.o.P.r.>ha~.e..
> '%',s,(.),\$$/$1=1,,$;=$_}:/\w/?{y,_, ,,#..>s^~ht<._..._..c....
> print}:y,.,,||last,,,,,,$_=$;;eval,redo}#.....>.e. r^.>l^..>k^.-


 
Reply With Quote
 
janicehwang1325@yahoo.com
Guest
Posts: n/a
 
      06-01-2006
thanks for the site. It's useful!!!

zentara wrote:
> On 31 May 2006 01:12:53 -0700, "(E-Mail Removed)"
> <(E-Mail Removed)> wrote:
>
> >Hi all,
> >
> >
> >I would like to run my Perl script as the service in Windows XP. How do
> >achieve that? I heard that using Microsoft Management Console can
> >achieve that. However, read thru the help file of the MMC, i still do
> >not get how to create it. Do someone know how to start from the very
> >beginning step?

>
> Personally I don't use Win32, but check out these:
>
> http://perlmonks.org?node_id=522586
>
> http://perlmonks.org?node_id=251168
>
> http://perlmonks.org?node_id=338496
>
> or do yourself a favor, and ask there.
>
>
>
> --
> I'm not really a human, but I play one on earth.
> http://zentara.net/japh.html


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Is it possible to run a perl script in a machine where Active perl is not installed. hara Perl Misc 6 05-27-2006 12:07 PM
how to run perl script from a perl script? anywherenotes@gmail.com Perl Misc 6 04-13-2005 11:19 PM
Perl Help - Windows Perl script accessing a Unix perl Script dpackwood Perl 3 09-30-2003 02:56 AM
How to make Perl Script "POST" call from another Perl Script??? Wet Basement Perl 1 07-15-2003 10:25 PM



Advertisments