.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Forum - ServerLoader (http://forums.bots-united.com/forumdisplay.php?f=40)
-   -   Perl script problem (http://forums.bots-united.com/showthread.php?t=4532)

Falco 29-09-2005 06:04

Perl script problem
 
Quote:

[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
Quote:

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 02:48

Re: Perl script problem
 
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)

Code:

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 04:27

Re: Perl script problem
 
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 07:49

Re: Perl script problem
 
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 08:45

Re: Perl script problem
 
Falco, try this

Quote:

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


All times are GMT +2. The time now is 21:21.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.