PDA

View Full Version : Perl script problem


Falco
29-09-2005, 07:04
[Process_0]
ProcessName = hlstats
AppName = F:\Apache Group\Apache2\htdocs\hlstats\perl\hlstats.pl
CommandLine =
StartPause = 1000
StopPause = 1000
UserInterface = Yes
AutoRestart = Yes
Priority = normal
Paused = No
Window = ShowNormal Wed Sep 28 22:06:29 2005 :: ServiceName = (mEAn) Server Loader
Wed Sep 28 22:06:29 2005 :: UserInterface = Yes
Wed Sep 28 22:06:29 2005 :: RestartInterval = 5000
Wed Sep 28 22:06:29 2005 :: Loading process values from ini file ...
Wed Sep 28 22:06:29 2005 ::
Wed Sep 28 22:06:29 2005 :: [Process_0]
Wed Sep 28 22:06:29 2005 :: AppName = F:\Apache Group\Apache2\htdocs\hlstats\perl\hlstats.pl
Wed Sep 28 22:06:29 2005 :: ProcessName = hlstats
Wed Sep 28 22:06:29 2005 :: CommandLine =
Wed Sep 28 22:06:29 2005 :: Priority = normal
Wed Sep 28 22:06:29 2005 :: Window = ShowNormal
Wed Sep 28 22:06:29 2005 :: AutoRestart = Yes
Wed Sep 28 22:06:29 2005 :: Paused = No
Wed Sep 28 22:06:29 2005 :: StartPause = 1000
Wed Sep 28 22:06:29 2005 :: StopPause = 1000
Wed Sep 28 22:06:29 2005 ::
Wed Sep 28 22:06:29 2005 :: Load completed.
Wed Sep 28 22:06:29 2005 :: The service is now running the main thread.
Wed Sep 28 22:06:29 2005 :: Attempting to start processes ...
Wed Sep 28 22:06:29 2005 :: Error ( 193 ): Failed to start program F:\Apache Group\Apache2\htdocs\hlstats\perl\hlstats.pl
Wed Sep 28 22:06:30 2005 :: Process (0): Attempting to restart program: F:\Apache Group\Apache2\htdocs\hlstats\perl\hlstats.pl
Wed Sep 28 22:06:30 2005 :: Error ( 193 ): Failed to start program F:\Apache Group\Apache2\htdocs\hlstats\perl\hlstats.pl
Wed Sep 28 22:06:30 2005 :: The program could not be restarted at this time. Any ideas on how I can get this to run. Have tried putting perl in the CommandLine = with no luck.

botmeister
30-09-2005, 03:48
The perl script is not an executable file and that's why it's failing.

Try this (change path to point to where perl.exe resides)

AppName = C:/Perl/bin/perl.exe F:/Apache/Group/Apache2/htdocs/hlstats/perl/hlstats.pl

Perl will run, but the script may fail if it cannot locate paths to the files it uses. So, you may have to configure a few things with perl and/or the script to get it working.

Falco
02-10-2005, 05:27
Thanks for the reply. The switch you posted does not work as it looks at it as one address. I will play around with it. If I do find a solution I will definitely post back.

botmeister
02-10-2005, 08:49
Just a note, you have to reverse the "/" to a forward slash. I don't know how to get this forum to accept the forward slash so I reversed them without telling you (oops).

What I did to run a perl script for psycostats was to create a .BAT or .CMD file that looked like this (reverse slashes).

cd C:/psychostats
start C:/Perl/bin/perl stats.pl

In order for the perl script to run, I had to CD (change directory) to the folder that had the perl script in it or it would not work.

So far, I have not found a way to get the server loader to run a bat/cmd file, so you'll have to find a way to get perl to accept commnd line arguments in a way where the scrip will run properly.

botmeister
27-10-2005, 09:45
Falco, try this


AppName = C:\Perl\bin\perl.exe
CommandLine = F:\Apache Group\Apache2\htdocs\hlstats\perl\hlstats.pl
StartDir = F:\Apache Group\Apache2\htdocs\hlstats\perl