Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Passing multiple commands to zkCli on the commandline

$
0
0
Hi,

is there a way to pass multiple commands to zkCli on the command line?

this works:
echo "create /test3 'sth' " | zkCli

but this doesn't
echo "create /test3 'sth' \n create /test3 'sth' " | zkCli

what I'd like to do is to authenticate and then create nodes (chef setup
of a server) so splitting the multiple zkCli commands into multiple bash
commands doesn't work.

THX
Peter

Viewing all articles
Browse latest Browse all 5648

Trending Articles