14 lines
180 B
Bash
14 lines
180 B
Bash
|
#!/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
|
||
|
}
|
||
|
|