Server rentals :: NFOservers.com

Forums

All times are UTC - 8 hours



Author Message
 Post subject: Re: Game logs
PostPosted: Thu Oct 07, 2010 3:28 am 
Offline
A semi-regular
A semi-regular

Joined: Thu Jan 01, 2009 3:10 am
Posts: 18
I mean, Well basically all I want to do is run have is have a crontab run commands or a script and download game server log file from an ftp server and put it in a specific folder.


Top
 Profile  
 
 Post subject: Re: Game logs
PostPosted: Thu Oct 07, 2010 3:33 am 
Offline
A semi-regular
A semi-regular

Joined: Thu Jan 01, 2009 3:10 am
Posts: 18
I forgot to add this. I want to write a shell script but I don't know how because I'm not familiar with the linux distro that being used for the webhost machine.


Top
 Profile  
 
 Post subject: Re: Game logs
PostPosted: Thu Oct 07, 2010 7:18 am 
Offline
Founder
Founder
User avatar

Joined: Thu Apr 18, 2002 11:04 pm
Posts: 9239
Location: Seattle
Yes, this is something that you can do. Instead of using a script, I'd recommend using the "wget" command, as it is designed for this sort of thing. The "--mirror" option might be useful, depending on exactly what you are doing.


Top
 Profile  
 
 Post subject: Re: Game logs
PostPosted: Thu Oct 07, 2010 9:13 am 
Offline
A semi-regular
A semi-regular

Joined: Thu Jan 01, 2009 3:10 am
Posts: 18
Ah, I see. That is great. I'm wanting to set it up to where the webhost automatically logins remotely to an FTP server and have it download a specific file like a txt file for example, and have it downloaded to the a specific folder (if possible) on my webhost storage.

I don't really know all the commands to get this to work but I did attempt to use the 'FTP' command in linux and couldn't figure out a way to make it work with crontabs.


Top
 Profile  
 
 Post subject: Re: Game logs
PostPosted: Thu Oct 07, 2010 10:25 am 
Offline
Founder
Founder
User avatar

Joined: Thu Apr 18, 2002 11:04 pm
Posts: 9239
Location: Seattle
This line in your crontab would quietly log into "ftp.somewhere.com" using username "username" and password "password", then retrieve "cstrike/cfg/server.cfg" into the main folder on the webspace -- and do it hourly:

Code:
@hourly wget ftp://username:password@ftp.somewhere.com/cstrike/cfg/server.cfg >/dev/null 2>&1


Top
 Profile  
 
 Post subject: Re: Game logs
PostPosted: Wed May 11, 2011 3:13 pm 
Offline
New to forums
New to forums

Joined: Sat Feb 05, 2011 5:32 am
Posts: 10
John ( and/or NFO Support ),

Are there any other options to get live in game logs? Maybe something like SysLogD ( http://edoceo.com/creo/winlogd ) ?

I got a IRC Mindcrime Bot running per the AutoInstaller. It talks to a IRC server running remotely (I wrote it in Java and it is inside my personal network). This allows me to send in-game events to my personal server, but the logs from the actual game are much more detailed then the IRC Mindcrime Bot events.

Phil


Top
 Profile  
 
 Post subject: Re: Game logs
PostPosted: Wed May 11, 2011 3:39 pm 
Offline
Founder
Founder
User avatar

Joined: Thu Apr 18, 2002 11:04 pm
Posts: 9239
Location: Seattle
We don't have any easy way to stream for CoD4 (I'm guessing that you're talking about CoD4, though the post author was not). The game does keep logs on-disk, though, and with an intelligent FTP client, you could frequently connect and download the delta. This is how B3 does it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
It is currently Thu May 23, 2013 6:31 am
Powered by phpBB® Forum Software © phpBB Group