So I have a python script that outputs text to the console and I need that logged to a file instead, but the script is quite complex and I don't code python, so I would rather not alter it.
I want to do this
>python script.py arg1 arg2 ... argn > "somefile.txt"
But it won't work, and my guess is that python takes >
and "somefile.txt"
as arguments..
Can this be achieved and how?