zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Schrammel <peter.schram...@preisanalytics.de>
Subject Passing multiple commands to zkCli on the commandline
Date Fri, 09 Jan 2015 07:44:27 GMT

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.


View raw message