I use replace.py blahblah foo bar > something.txt
something.txt will only contain some irrelevant lines, but the essential information output by the script still comes to the screen (without colours). That's what I need in a file. (Something is in the log, but that one has a too complicated form with colour codes and everything that is in my way.)
Windows 7
2016-09-14 11:12 GMT+02:00 Bináris wikiposta@gmail.com:
I use replace.py blahblah foo bar > something.txt
something.txt will only contain some irrelevant lines, but the essential information output by the script still comes to the screen (without colours). That's what I need in a file. (Something is in the log, but that one has a too complicated form with colour codes and everything that is in my way.)
-- Bináris
2016-09-14 12:20 GMT+03:00 Bináris wikiposta@gmail.com:
Windows 7
Then check out https://support.microsoft.com/ro-ro/kb/110930
2016-09-14 11:12 GMT+02:00 Bináris wikiposta@gmail.com:
I use replace.py blahblah foo bar > something.txt
something.txt will only contain some irrelevant lines, but the essential information output by the script still comes to the screen (without colours). That's what I need in a file. (Something is in the log, but that one has a too complicated form with colour codes and everything that is in my way.)
-- Bináris
-- Bináris
pywikibot mailing list pywikibot@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot
2016-09-14 12:12 GMT+03:00 Bináris wikiposta@gmail.com:
I use replace.py blahblah foo bar > something.txt
pywikibot.output logs to stderr, so you might want
replace.py blahblah foo bar 2> something.txt
or, if you want everything in that file:
replace.py blahblah foo bar &> something.txt
Strainu
something.txt will only contain some irrelevant lines, but the essential information output by the script still comes to the screen (without colours). That's what I need in a file. (Something is in the log, but that one has a too complicated form with colour codes and everything that is in my way.)
-- Bináris
pywikibot mailing list pywikibot@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot
2016-09-14 11:23 GMT+02:00 Strainu strainu10@gmail.com:
pywikibot.output logs to stderr, so you might want
That's strange for me. These are not errors, this is the relevant output.
replace.py blahblah foo bar 2> something.txt
Thank you, meanwhile I googled it and it is already working. I asked before searching, sorry.