How can I extract the output from the telnet command on a remote redis server in a bash script.
I would do:
telnet remote-redis-ip 6379
LRANGE mylist 0 -1
And save the result in a variable. How to achieve this goal in a bash script?
Thanks,
source
share