2016-09-14 12:12 GMT+03:00 BinĂ¡ris <wikiposta(a)gmail.com>om>:
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(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot