SPUG: srvany and Perl service

Bradley E. Young byoung at speakeasy.org
Tue Oct 30 19:20:14 CST 2001

Does the service have permission to modify the files?

Try changing the service to run under your account:

Open the properties of the service in the services control panel, and you should see the option to change the account it runs as.  In W2K, it is a separate tab.


Bradley E. Young     UNIX bigot
bradleyy at wrq.com    +1.206.301.6778
Never make anything simple and efficient when a way can be found to
make it complex and wonderful.

-----Original Message-----
From: owner-spug-list at pm.org [mailto:owner-spug-list at pm.org]On Behalf Of Martin Korb
Sent: Tuesday, October 30, 2001 11:31
To: spug-list at pm.org
Subject: SPUG: srvany and Perl service

I using srvany.exe to install a perl service on win NT. 

srvany is installed as the "mainservice" using instsrv mainservice d:\services\srvany.exe

To install movefiles. pl (is does what the name implies, looks at a dir and moves the content to a new dir) as a service, 
I did the following (which is not working) 

- used regedt32.exe to edit the registry info. 

 - created a new folder "Parameters" under                                             HKEY_LOCAL_MACHINE\SYSTEM\CURRENTCONTROLSET\mainservice\

- created a new value in Parameters:    AppParameters:REG_SZ:pathname of the movefiles.pl (c:\perl\scripts\movefiles.pl)
 -created a new value in Parameters:    Application:REG_SZ:pathname of perl.exe (c:\perl\bin\perl.exe)

When I restart the "mainservice"  from the control panel nothing happens, meaning no files are moved. 
The movefiles.pl is only a testscript to see if I can get the service to work. 

What am I doing wrong?  Any suggestions? 


 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
     Seattle Perl Users Group (SPUG) Home Page: http://zipcon.net/spug/

More information about the spug-list mailing list