Go Back   CodingForums.com > :: Server side development > Perl/ CGI

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-06-2012, 11:08 PM   PM User | #1
Lengalicious
New Coder

 
Join Date: Sep 2012
Posts: 13
Thanks: 7
Thanked 0 Times in 0 Posts
Lengalicious is an unknown quantity at this point
Need help figuring out serverstring to execute .pl file.

I have a .bat file that allows me to initiate a server with a serverstring, within the server string is -w vehicles.pl, im guessing it runs that particular pearl script on startup, however i'm trying to convert the .bat command into a serverstring I can use in PHP so I can run the server from my website with the same serverstring, I can get most of it apart from the perl script. Heres the .bat contents

Code:
@echo off
taskkill /IM mysql.exe /F &
taskkill /IM mysqld.exe /F &
taskkill /IM arma2oaserver.exe /F &
@start server_setup\xampp\mysql\bin\mysqld.exe --defaults-file=server_setup\xampp\mysql\bin\my.ini
cls
echo "Please wait...Loading"
ping -n 10 127.0.0.1>nul
server_setup\perl\bin\perl -w vehicles.pl --cleanup --world chernarus 1 dayz root 123456
"Expansion\beta\arma2oaserver.exe" -port=2302 "-config=Saintly\config_lingor.cfg" "-cfg=Saintly\basic.cfg" "-profiles=Saintly" -name=Saintly "-mod=@DayZ_lingor;@dayz_lingor_island;@Saintly_Lingor;" -cpuCount=4 -maxMem=1578 -exThreads=7
cd server_setup\xampp & mysql_stop.bat
the bit where its running the vehicles.pl and --cleanup, I want those two things to be converted to a php compatible serverexestring with directory seperation ".DS."

On a side not i wasn't sure whether to post this in the perl or php forum, sorry.

Last edited by Lengalicious; 09-06-2012 at 11:37 PM..
Lengalicious is offline   Reply With Quote
Old 09-08-2012, 01:47 PM   PM User | #2
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
Quote:
On a side not i wasn't sure whether to post this in the perl or php forum, sorry.
Nevertheless, you should only post in one. If it is in the wrong forum then it will be moved by a mod.
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
AndrewGSW is offline   Reply With Quote
Old 09-08-2012, 02:50 PM   PM User | #3
FishMonger
Super Moderator


 
Join Date: May 2005
Location: Southern tip of Silicon Valley
Posts: 2,753
Thanks: 2
Thanked 149 Times in 144 Posts
FishMonger will become famous soon enoughFishMonger will become famous soon enough
This is not the answer you're looking for, but is the answer to the question you asked.
Code:
server_setup\path\to\php vehicles.php --cleanup --world chernarus 1 dayz root 123456
FishMonger is offline   Reply With Quote
Old 10-03-2012, 05:12 AM   PM User | #4
Clareourney
New to the CF scene

 
Join Date: Oct 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Clareourney is an unknown quantity at this point
And also do I have to change the file name to something like Example.sh? I know in perl the files must have .pl after the name.

Last edited by FishMonger; 10-03-2012 at 02:42 PM.. Reason: Removed spam link
Clareourney is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:46 PM.


Advertisement
Log in to turn off these ads.