RE: A way to get current directory when using PerlSvc

2006-06-26 Thread Jan Dubois
On Fri, 23 Jun 2006, Foo JH wrote: > Hi all, > > It's like this: I built an executable using PerlSvc, and I install the > service like this: > c:\app\test.exe --install > > In Services, the 'Path to Execute' field shows: > c:\app\test.exe > > But

Re: A way to get current directory when using PerlSvc

2006-06-23 Thread $Bill Luebkert
Foo JH wrote: > Hi all, > > It's like this: I built an executable using PerlSvc, and I install the > service like this: > c:\app\test.exe --install > > In Services, the 'Path to Execute' field shows: > c:\app\test.exe > > But when I start the

RE: A way to get current directory when using PerlSvc

2006-06-23 Thread Brian Raven
Foo JH <> wrote: > Hi all, > > It's like this: I built an executable using PerlSvc, and I install > the service like this: > c:\app\test.exe --install > > In Services, the 'Path to Execute' field shows: > c:\app\test.exe > > But when I sta

Re: A way to get current directory when using PerlSvc

2006-06-23 Thread Nahum Cohen
NahumOn 6/23/06, Foo JH <[EMAIL PROTECTED]> wrote: Hi all,It's like this: I built an executable using PerlSvc, and I install theservice like this:c:\app\test.exe --installIn Services, the 'Path to Execute' field shows:c:\app\test.exeBut when I start the service, and I print out t

A way to get current directory when using PerlSvc

2006-06-23 Thread Foo JH
Hi all, It's like this: I built an executable using PerlSvc, and I install the service like this: c:\app\test.exe --install In Services, the 'Path to Execute' field shows: c:\app\test.exe But when I start the service, and I print out the current working directory, it's: C:

Re: PerlSvc problem

2003-09-04 Thread Jan Dubois
On Thu, 4 Sep 2003 09:48:48 +0200, [EMAIL PROTECTED] wrote: >I try to get a Win32 service running using the Activestate PDK. The >problem is that I would like to initialize a variable during the Install >method and use it later in the Startup method. The code below, however, is >not working as

PerlSvc problem

2003-09-04 Thread ekkehard . goerlach
kkehard PS: I am using PDK 5.2.0 Build 520 and Perl 5.6.1 Build 635 package PerlSvc; use strict; use warnings; use English; our %Config = (ServiceName => "TestSvc", DisplayName => "A Test Service"); my %Globals = (configFile => 'Hu');

RE: perlsvc

2001-12-05 Thread sunil matte
--Original Message- > From: Steven Wadding > [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 03, 2001 2:05 PM > To: [EMAIL PROTECTED] > Subject: Re: perlsvc > > > At 01:29 PM 12/3/01 -0500, Eric Logeson wrote: > >When I issue the following: > >perlsvc -

RE: perlsvc

2001-12-03 Thread Eric Logeson
Title: RE: perlsvc thanks, exactly the info I needed -Original Message- From: Steven Wadding [mailto:[EMAIL PROTECTED]] Sent: Monday, December 03, 2001 2:05 PM To: [EMAIL PROTECTED] Subject: Re: perlsvc At 01:29 PM 12/3/01 -0500, Eric Logeson wrote

Re: perlsvc

2001-12-03 Thread Steven Wadding
At 01:29 PM 12/3/01 -0500, Eric Logeson wrote: >When I issue the following: >perlsvc -s my.pl -e my.exe -f -c >the script compiles without error, but when I run my.exe no service is >installed...is this what is supposed to happen or when my.exe is executed >is it supposed to in

perlsvc

2001-12-03 Thread Eric Logeson
Title: perlsvc hello I would like to run the following script as a service: package PerlSvc; $Name = 'my'; $DisplayName = 'my'; sub Startup{     while(1){     sleep(600);         CurrentTime();