PDA

View Full Version : FTP Log File and PB


BadassJoeDK
10-16-2004, 02:27 PM
I need to get acess to the mp log file through a normal FTP client. But the problemt is that, through a normal FTP client I dont get acess to the complete folder setup of my game server. The game server is rented. However if I use the game companies web interface I get acess to all the folders on the server. This of cause means that I cant have a script on my own computer that automatic downloads the log file via FTP.

My question is: Is there a way to force a linux server to out put the mp log file to another folder like main or is there a way you could out put a mp log file to pb´s folder?

Thanks

UraniumGamers
10-16-2004, 03:29 PM
Unless you are running a mod, the log file should be in the /main folder. It seems odd that you would not have FTP access to the folder containing your logs (especially since your log should reside in the same folder as your configs...). Have you asked your provider if they could just give you FTP access?

The only way to get the log to move like that would be to have your provider set up a scheduled script that did that on a daily basis. Perhaps if they are unwilling to grant you FTP access to the log, they will at least set that up.

BadassJoeDK
10-17-2004, 02:03 AM
Thanks for your answer. Have a look at this picture:

http://www.badassstats.com/tree.gif

This is what I have acess to, when I log in through gameservers web interface. If you notice the ".callofduty" and its subfolders, then I can find the log file in the "uo" folder.

However if I log in via CuteFTP the only folders I can get acess to is the "main" folder and the and the folders below the main folder. So what am I to do?

BadassJoeDK
10-17-2004, 06:30 AM
Just learned what the problem was. The folders that contain the log file is hidden folders. So I tried to log on to the game server with smartFTP and that program can find and show the folders, no problem. But it is a major problem to have a PHP ftp script to find those hidden folders. So if anybody has any suggestions I would appriciate it?

UraniumGamers
10-17-2004, 12:08 PM
Joe,

Would SmartFTP allow you to download the log?

nader
10-17-2004, 05:47 PM
try winscp3 its a pph http://winscp.sourceforge.net/eng/
that what use for our servers set up like nortons commander

BadassJoeDK
10-18-2004, 04:20 AM
Yep, SmartFTP can see the hidden folders with out problems. I am trying to develop a PHP script that can retrive files from hidden folders. But I must admit finding away to do that is pretty hard. I know for a fact it can be done. I know it would be eaiser to just have SmartFTP download the log file, but it would be nice to have a script do the downloading for you, from a remote computer.

Clanwarz
10-18-2004, 08:02 AM
Well the pb folder does not have to work in that fashion. UO and call of duty have fs_homepath. Use this in your command line and pb will not log in that fashion but will log and work outside the .system folder as it should.

BadassJoeDK
10-18-2004, 01:49 PM
That sounds interesting? Could you show me how to use home path? Remember that I have rented the game server and might have limited acess to some things.

Clanwarz
10-18-2004, 01:59 PM
Post your startup script and the path to your files.

ex: /home/yourfiles/myserver/uo/server.cfg

That would be the exact path to your server.cfg

BadassJoeDK
10-19-2004, 05:29 AM
Lol - your going to hate me for this!!

The problems with getting acsess to the log file stems from a kind of misunderstanding. When I log on to my game server through the web interface that gameservers.net has, it shows you ONE PATH to the various folders.

But if you log on the game server with SmartFTP it shows you a completely DIFFERENT PATH to the folders and this is the right path!!! I used the path from the web interface before. So problem solved. But how was I to know that? :?