How to execute multiple commands in Stackexchang.Redis CLI in windows?

1.1k views Asked by At

I am trying to execute multiple commands one after the other in redis cli through batch file, redis pipelining but could not find the working solution.

Here is my command:

127.0.0.1:6379>$(Auth Test12\r\nPING\r\n;)

error : Invalid Arguments

$ (printf "PING\r\nPING\r\nPING\r\n"; sleep 1)

Error : Invalid Arguments

Using Cmd.exe in ProcessStartInfo in c#

FileName:Cmd.exe
Arguments: @"/c cd c:\program fies\redis && call redis-cli -a Test12 config set requirepass Test1234.

Tried same command in .bat file also.

Error: redis-cli is not recognized as internal or external batch command

My Requirement is to authenticate with existing password and Set new password to redis server from C# code.

If anyone could suggest on this, it would be a great help.

0

There are 0 answers