Ned Deily <n...@python.org> added the comment:

Did you try running the same command "screen -ls" with subprocess.run() so you 
can see the output from it?  Or just from a terminal shell?  If I do, I see:

>>> subprocess.run(["screen", "-ls"])
No Sockets found in /var/folders/sn/0m4rnbyj2z1byjs68sz838300000gn/T/.screen.

CompletedProcess(args=['screen', '-ls'], returncode=1)

$ screen -ls
No Sockets found in /var/folders/sn/0m4rnbyj2z1byjs68sz838300000gn/T/.screen.

So subprocees.check_output() is likely working just fine: it is telling you 
that the command you tried to execute failed for some reason.

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type: compile error -> 

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36331>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to