Skip to content

Make redis-cli grep friendly in pubsub mode. - #9013

Merged
yossigo merged 1 commit into
redis:unstablefrom
ikeberlein:make-pubsub-grep-friendly
Jun 8, 2021
Merged

yossigo merged 1 commit into
redis:unstablefrom
ikeberlein:make-pubsub-grep-friendly

Conversation

@ikeberlein

Copy link
Copy Markdown
Contributor

redis-cli is grep friendly for all commands but SUBSCRIBE/PSUBSCRIBE. It is unable to process output from these commands line by line piped to another program because of output buffering. To overcome this situation I propose to flush stdout each time when it is written with reply from these commands the same way as it is already done for all other commands.

redis-cli is grep friendly for all commands but SUBSCRIBE/PSUBSCRIBE.
it is unable to process output from these commands line by line piped
to another program because of output buffering. to overcome this
situation I propose to flush stdout each time when it is written with
reply from these commands the same way it is already done for all other
commands.
@oranagra oranagra added the state:to-be-merged The PR should be merged soon, even if not yet ready, this is used so that it won't be forgotten label May 31, 2021
@yossigo
yossigo merged commit 77d44bb into redis:unstable Jun 8, 2021
@yossigo

yossigo commented Jun 8, 2021

Copy link
Copy Markdown
Contributor

Merged, thank you @ikeberlein!

@ikeberlein
ikeberlein deleted the make-pubsub-grep-friendly branch June 9, 2021 10:44
JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request Sep 8, 2021
redis-cli is grep friendly for all commands but SUBSCRIBE/PSUBSCRIBE.
it is unable to process output from these commands line by line piped
to another program because of output buffering. to overcome this
situation I propose to flush stdout each time when it is written with
reply from these commands the same way it is already done for all other
commands.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:to-be-merged The PR should be merged soon, even if not yet ready, this is used so that it won't be forgotten

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants