What is a good way to psubscribe on a redis pattern and pipe to grep.
I tried
redis-cli psubscribe "somepattern*" | grep somevalue
But it seems to not work if the pattern doesn't publish frequently.
What is a good way to psubscribe on a redis pattern and pipe to grep.
I tried
redis-cli psubscribe "somepattern*" | grep somevalue
But it seems to not work if the pattern doesn't publish frequently.
How to redirect the output of redis subscription
stdbuf -oL redis-cli psubscribe "*" | grep --line-buffered sometext