The Ultimate Bat File
Hey Guys!
Dingus, a member of the SDA Clan, is a professional programmer, and has made this very awesome bat file, and gave me permission to share it. This Bat File will save every single Bat File into a Directory of YOUR Choosing. So, you can now save all your Server Logs! This also acts as a Crash Log, and an Automatic Server Restart in the Event of a Crash. First of all, this is Ours Currently. Code:
:top d: <== Drive in Which the Server is on. cd\UTServers\UnrealTournament\System <== Folder Directory of the Server ucc server CTF-2Pyramids][?Mutator=MapVoteLA12.BDBMapVote multihome=67.19.181.52 ini=SERVER.INI log=ucc.log <== Server Command Line for /f "tokens=1,2" %%u in ('date /t') do set d=%%v for /f "tokens=1" %%u in ('time /t') do set t=%%u if "%t:~1,1%"==":" set t=0%t% set timestr=%d:~6,4%%d:~3,2%%d:~0,2%%t:~0,2%%t:~3,2% copy ucc.log C:\ServerCrashLogs\main\ucccrash%timestr%.log <== Directory in which you want the Logs to Go. copy ucc.log ucccrash.log goto top Be sure to post any comments or Suggestions! Enjoy! Dingus and Baiter www.clansda.com |
Quote:
Only differance is I seperated out the set time strings to make it easier to customize. http://www.unrealadmin.org/forums/sh...83&postcount=4 |
Cool thanks for the tip SSquirell
|
Tell me, how did you get the amazing idea of using a blank forum name? And why is that even possible?
|
Quote:
It's an old trick but some still think it's funny. Using the same code you can make all of your typing appear backwards. * this is an example, pretty lame but some people think it's fun to popst in forums this way. |
Lame indeed.
|
On Windows XP Pro
This is a super .bat file Thanks Dingus and Baiter
Just incase anyone else has the same problem as me ill post my experience. I use WindowsXP Pro on my server so I dont know if thats why I struggled but, I was getting syntax error and the date wasnt working time was ok. After a lot of guessing and trial and error I had to change the line from Code:
for /f "tokens=1,2" %%u in ('date /t') do set d=%%v Code:
for /f "tokens=1,2" %%u in ('date /t') do set d=%%u |
It took a professional programmer to make a bat file? sad.. nethertheless, cool bat :P
|
Just a bit of info ive found for me it will log from turning the server on to whenever it does go off/crash instead of restarting at each map change.
So after a couple of days my log was 200mb. |
Quote:
And to my advice to suppress logs like this: Suppress=DevLoad Suppress=DevSave Suppress=DevNetTraffic Suppress=DevGarbage Suppress=DevKill Suppress=DevReplace Suppress=DevSound Suppress=DevCompile Suppress=DevBind Suppress=DevBsp Suppress=DevNet Suppress=ScriptWarning Suppress=NetComeGo And if you use AKA, use the No log Version. And if you use Eavy Spawn Protection, use the No log Version. And I have a VERY FULL 30 man server, and it only logs about 7-10 MB a day. |
Okay, there's an aka no log version? Where?!!!?
and pardon my eeg-nurnce, but is there anything like this bat file for linux servers? We need to be saving crash logs, but our provider has nothing to do that with from what I hear. |
Quote:
The 6K version: http://www.ut-files.com/Admin/AKA/AKAv6KLog.zip The 20K Version: http://www.ut-files.com/Admin/AKA/AKAv20K.zip As far as a Linux Version without having access to the actual PC, I dont know, but maybe someone else here does. :P |
Thanks B! Since I installe eavyspawn no log, suddenly aka has begun logging, lmao. I wonder what will begin logging next?
|
Oo it has the exact same name as what we use at present. Just overwrite it, I suppose, seeing as how there's no client downloads, huh?
|
Quote:
|
We're still logging aka stuff. Sure that's the right one?
|
Quote:
[AKAv6L.AKAv6L] NameCheckDelaySeconds=300 bAutoAddIPToNameEntries=True bChangeNames=False KeepNameHistory=3 bListCommand=True bChangeCommand=False bLog=False |
Jeez, there was a readme file in there wasn't there?
Sorry. |
Actually, I think I can get our provider to look at it, since it would be a function of the startup script.
If not, I'll dig out my trusty-rusty coders' guide for *NIX and see what I can pull from me bum. I'll keep you posted. |
bump this one back up , was looking for this for a while now. :P
|
All times are GMT +1. The time now is 02:31 PM. |