redish/lib/net.sh

14 lines
129 B
Bash
Raw Normal View History

2020-05-02 19:34:34 +00:00
###
# redis sock
###
exec {sock}<>/dev/tcp/"$host"/"$port"
###
# net wrappers
###
redis_send() {
printf %s "$@" >&"$sock"
}