1

Topic: How to logging?

Im try to use functions

teewars_srv -f conf.cfg | tee log.log

and

teewars_srv -f conf.cfg >> log.log

And log file is empty. How to do it? sad

2

Re: How to logging?

./teeworlds_srv -f config.cfg > log.log

if($poster["intelligence"] == $intelligence["idiot"])
        deny_post($poster);

3

Re: How to logging?

and nothing sad

4

Re: How to logging?

Are you using linux?

if($poster["intelligence"] == $intelligence["idiot"])
        deny_post($poster);

5

Re: How to logging?

Shell on Gentoo

6

Re: How to logging?

./teewars_srv -f conf.cfg | tee log.log

should do the trick...

Used to be very active waay back

7

Re: How to logging?

Whaaa? What is tee log.log?
I am using ubuntu and ./teeworlds_srv -f config.cfg > log.log works for me. It should work on gentoo to.

if($poster["intelligence"] == $intelligence["idiot"])
        deny_post($poster);

8

Re: How to logging?

tee is a command that reads stdin and both saves it to a given file and writes it to stdout

Used to be very active waay back

9

Re: How to logging?

Oh, weird how I don't have to use it to get my logs.

if($poster["intelligence"] == $intelligence["idiot"])
        deny_post($poster);