haproxy and socat sudo
The echo
is running as root
, but the socat
isn't. Try this instead:
echo "show stat" | sudo socat stdio /var/run/haproxy.sock
In your pipe, only echo is run with elevated privileges, I believe you need a sudo before socat.