Dimaf
Dimaf

Reputation: 683

Using cqlsh with -f option

Can we use cqlsh -f like it?

psql -U maint_sa -p 3254 postgres -f - << EOT
SHOW ALL;
EOT

On cqlsh I have following:

cqlsh -f - << EOT
> DISCRIBE KEYSTORE ks1;
> EOT
Can't open '-': [Errno 2] No such file or directory: '-' 

Upvotes: 1

Views: 183

Answers (1)

bechbd
bechbd

Reputation: 6341

Have you tried echoing it to the command line:

echo "DESC KEYSPACE ks1; exit" | cqlsh

Upvotes: 3

Related Questions