Ciencia_Al_Poder created this task. Ciencia_Al_Poder added a subscriber: Ciencia_Al_Poder. Ciencia_Al_Poder added a project: pywikibot-core. Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION **OS:** Linux
When I redirect the output of the python command that runs the bot to a file or another command, the output simply disappears. I wanted to generate a file based on the listpages.py script, but apparently I'm unable to do so...
```
python pwb.py listpages.py -family: -cat:'somecategory'
1 Page 1 2 Page 2 ...
python pwb.py listpages.py -family: -cat:'somecategory' > filelist.txt ls -l filelist.txt
-rw-r--r-- 1 jesus users 0 mar 21 16:55 filelist.txt
python pwb.py listpages.py -family: -cat:'somecategory' | uniq
```
Using the pipe to pass the output to another command doesn't generate output. The same when redirecting to a file.
Printing text from python directly works, though
```
python -c "print 'test'" | uniq
test ```
TASK DETAIL https://phabricator.wikimedia.org/T93474
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Ciencia_Al_Poder Cc: pywikipedia-bugs, Ciencia_Al_Poder, Aklapper, jayvdb