run-shell-command with output

Ag Ibragimov <[email protected]> Sat, 23 May 2020 19:05:55 -0700
Newsgroups gmane.comp.window-managers.stumpwm.devel
Message-ID <[email protected]>
I need to run shell command and collect its output but I can't figure out, for some reason it doesn't get the output. I tried using run-shell-command and run-prog-collect-output, and they either return nil or an empty string.

I'm trying something like this:  `xrandr | grep " connected "`

Can anyone suggest what I might be missing or misconfigured on my system?