Scanner "list" output cannot be captured to a file (or processed)

server-linux

#1

Strangely the Scanner "list" works fine to the tty, but cannot be captured/processed. Is there a workaround for this?

Here's how I reproduce on Linux:
plex@plexms:~$ /usr/lib/plexmediaserver/Plex\ Media\ Scanner --list
1: Movies
2: TV Shows
plex@plexms:~$ /usr/lib/plexmediaserver/Plex\ Media\ Scanner --list >/tmp/x
plex@plexms:~$ more /tmp/x
plex@plexms:~$ ls -al /tmp/x
-rw-rw-r-- 1 plex plex 0 Feb 14 06:41 /tmp/x

Reproduced this issue on the following Linux PMS versions:
Version 1.11.2.4772
Version 1.11.3.4793


#2

Not a workaround. The scanner outputs on stdout and stderr. Redirect stderr to the file as well (2>&1 and &> )