redis-test/test/exec_redis.sh

14 lines
180 B
Bash
Raw Normal View History

2022-02-14 15:19:11 +00:00
#!/bin/bash
function exec() {
ip="$1"
port="$2"
file="$3"
while read line
do
echo "> $line"
echo $line | redis-cli -h "$ip" -p "$port"
done < $file
}