Transfer Log file from Game Server to Web Server?

ripthesystem

Senior member
Mar 11, 2002
571
0
0
Ok.. here's the deal. I help run a gameserver and a website for a clan.
We are looking to add game statistics that are updated once a day to the website. The statistics program takes the log file from gameserver and parses the data into a database where a php script calls up the data and makes it pretty so the users can view all their stats.

The stats program works fine and dandy but the problem is that the logfile it needs to parse is on the Game Server. What I want is a script that I could set up a cron job to run on the webserver and this script would take the log file from the game server and put it on the webserver.

The setup is like this:

I have 2 linux servers that both are hosted through companies (not at my house).

1) Webserver (where site is and stats program runs)
2) Gameserver (where gameserver.log is found)

Right now I have to manually download the log and upload it to the webserver and then parse it.

What I want is a script that will run (via Cron) to transfer the gameserver.log from the gameserver to the webserver and then parse the data. I have full FTP access to both, plus shell access to the webserver.


I have found posts via Google where people said that they 'Have a Script' or 'Got it to work with a script' but I haven't been able to find a script that will do it and no one (that I've found) has posted what they have done to get this to work.

Can anyone help?
Thanks!!!!