• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux Server log

JoccE

CopyLeft (ɔ)
Joined
Aug 26, 2007
Messages
3,418
Solutions
1
Reaction score
92
Location
Sweden, Stockholm
Small Question:

Is there any way too save everything that is in the console to a .log file?

Startup
errors
Players login

Everything that is shown in the console

There are a lot of .log files but most of them are empty even server.log
do i need to add something in the compiling?

/JoccE
 
So i am running this from my own made admin panel "cd /home/server/ && ./theforgottenserver"

I can change it too "cd /home/server/ && ./theforgottenserver > output.log"
?

EDIT: nope that just get stuck
 
Try this, should work:
Code:
screen -L ./theforgottenserver

I don't use screen since I am not starting the server the server myself. I have created a WebGUI to start it.

This way you'll catch only stdout and TFS mostly uses calls to stderr so 2> switch is required here.

When i use 2> i get a blank output.log :/
 
cd /home/server/ && ./theforgottenserver 2> output.log
Gets a blank output file and the when I killall -9 theforgottenserver

it just stand "Killed" in it.
 
There i get the same output as >

Just stops after a while. This is the end output (Server is started)

Code:
[19:1:23.803] data/actions/scripts/quests/monkeydoor.lua:13: '<eof>' expected n$
[19:1:24.374] done.
[19:1:24.546] > Loading talkactions... [Error - LuaInterface::loadFile] data/ta$
[19:1:24.546] [Error - Event::checkScript] Cannot load script (data/talkactions$
[19:1:24.546] data/talkactions/scripts/foodcheck.lua:4: ')' expected near 'full'
[19:1:24.586] done.
[19:1:25.316] > Loading mov

Feels like it runs out of space and write any more
 
Yeh it workes but now i need a script that removes that file every start of server

Thanks i guess i will use it since > does not work as i want

EDIT did not work in a PHP script tho..
 
Back
Top