run-shell-command with output

1 view
Skip to first unread message

Ag Ibragimov

unread,
May 23, 2020, 10:06:12 PM5/23/20
to stumpw...@nongnu.org

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?

Ag Ibragimov

unread,
May 23, 2020, 10:15:16 PM5/23/20
to Ag Ibragimov, stumpw...@nongnu.org
nevermind... running run-shell-command with t flag worked. I'm not sure why it didn't the first time I tried
Reply all
Reply to author
Forward
0 new messages