Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 07-29-2017, 05:24 PM
Fridgecritter
Hill Giant
 
Join Date: Feb 2008
Posts: 195
Default

I figured it out with the help of timeout /t [5 seconds]

AND the most important thing after taking the "exit" off the end of my batch file, I could see why it was not starting the server back up. For perl to find world.exe, etc... the batch file has to be ran from the EQEmuServer folder because in the perl file it doesn't pass a specific directory argument. It was running from desktop before.

So for other people's information, here's what my end result looks like in a batch file:

Code:
taskkill /IM perl.exe /F
taskkill /IM queryserv.exe /F
taskkill /IM ucs.exe /F
taskkill /IM eqlaunch.exe /F
taskkill /IM Zone.exe /F
taskkill /IM world.exe /F
taskkill /IM shared_memory.exe /F
taskkill /IM loginserver.exe /F

timeout /t 3

mysql --user=root --password=mypass peq < c:\query1.sql

timeout /t 5

mysql --user=root --password=mypass peq < c:\query2.sql

timeout /t 5

@echo off
cls
echo *** CLEARING OLD LOGS ***
del "logs/zone/" /q
shared_memory.exe
start perl C:\EQEmuServer\win_server_launcher.pl zones="30" zone_background_start kill_all_on_start
exit
So now all I have to do is create 4 tasks, one for every 6 hours, and it will run that each time. Tested and it works. Thanks a ton Scorpious.
Reply With Quote
 


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 -4. The time now is 07:35 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3