| Mpaa added a comment. |
In T142021#2525752, @Vladis13 wrote:Also, "python scripts\listpages.py" does not write a list of pages in file.
And, redirect output in file on Windows does not work (like "python scripts\listpages.py -transcludes:"template_name"> list.txt" or "... | more > list.txt"). It gives error of python, as if ">" is argument of its call.
For the redirection the is already an open bug (cannot recall which one).
Anyhow,mpaa@tools-bastion-03:~/core$ python scripts/listpages.py -mysqlquery:"SELECT page_namespace, page_title FROM page WHERE page_namespace = 0 LIMIT 15" > file.txt 15 page(s) found mpaa@tools-bastion-03:~/core$ cat file.txt 1 "?" 2 "A Bruised Reed Shall He Not Break" ... 15 "Birds of Prey" March
TASK DETAIL
EMAIL PREFERENCES
To: Mpaa
Cc: Mpaa, valhallasw, Aklapper, pywikibot-bugs-list, Vladis13, Mdupont, jayvdb
Cc: Mpaa, valhallasw, Aklapper, pywikibot-bugs-list, Vladis13, Mdupont, jayvdb
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
