Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将 list 命令的结果保存到文件中。我怎样才能从 cassandra-cli 做到这一点?
将您键入的命令保存到文件中以用作脚本,然后调用 cli:
cassandra-cli <commands.txt >listing.txt
对我来说,使用管道输入是行不通的。我使用了cassandra-cli 的--file参数。例如:
cassandra-cli --file commands.txt > listing.txt