Mpaa added a comment.

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
https://phabricator.wikimedia.org/T142021

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Mpaa
Cc: Mpaa, valhallasw, Aklapper, pywikibot-bugs-list, Vladis13, Mdupont, jayvdb
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to