New
#1
Perl file (.pl) file with arguments as windows service
I am running Windows 7 32-bit. I have a perl script which i want to start everytime computer starts. Setting it as service will be a good option as i can start and restart the service from command line.
In windows XP I was using srvany.exe but that is not a good solution. Is there any way I can make this Perl Script which takes in some command line arguments as windows service. Tried using sc.exe, with that service is created but it fails to start.
To run that perl script i run on command line:.perl PesrSclipt.pl --arg1 Hello --arg2 Buddy --arg3 Good
Any help will be highly appreciated.
Thanks.