-2

I'm just running an assetto corsa server on my linux server and Im wondering how it could be possible to "capture" the output of my console and save it in a txt file. (because AC hasn't a log system, but the console outputs nice information)

NoaH
  • 7
  • 6
  • 1
    Possible duplicate of [Redirect stderr and stdout in Bash](https://stackoverflow.com/q/637827/608639) – jww Sep 03 '18 at 15:39

1 Answers1

-1

If you want to capture the ouput of your console while see it on your console at the same time:

someCommand | tee --append someFile.txt 

if you want to print in the .txt file the error message it it occurs:

someCommand 2>&1 | tee --append someFile.txt
Simo
  • 925
  • 7
  • 18