From dab18f48fd173c0ef39e17a3c87386580c36ad12 Mon Sep 17 00:00:00 2001 From: TS Date: Fri, 14 Aug 2020 10:12:03 +0200 Subject: [PATCH] adds parenthesis in the `docker-compose exec` , such that the command behind pipe is exectued within the container --- node_client.asciidoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/node_client.asciidoc b/node_client.asciidoc index 7181f7b..265d6c6 100644 --- a/node_client.asciidoc +++ b/node_client.asciidoc @@ -1043,10 +1043,10 @@ As you can see from the output, the script first gets the node IDs (public keys) Looking inside the script, we see the part that gets all the node IDs and stores them in temporary variables so that they can be used in subsequent command. It looks like this: ---- -alice_address=$(docker-compose exec -T Alice lncli -n regtest getinfo | jq .identity_pubkey) -bob_address=$(docker-compose exec -T Bob lightning-cli getinfo | jq .id) -wei_address=$(docker-compose exec -T Wei eclair-cli -s -j -p eclair getinfo| jq .nodeId) -gloria_address=$(docker-compose exec -T Gloria lncli -n regtest getinfo | jq .identity_pubkey) +alice_address=$(docker-compose exec -T Alice "lncli -n regtest getinfo | jq .identity_pubkey") +bob_address=$(docker-compose exec -T Bob "lightning-cli getinfo | jq .id") +wei_address=$(docker-compose exec -T Wei "eclair-cli -s -j -p eclair getinfo| jq .nodeId") +gloria_address=$(docker-compose exec -T Gloria "lncli -n regtest getinfo | jq .identity_pubkey") ---- If you have followed the first part of the chapter you will recognise these commands and be able to "decipher" their meaning. It looks quite complex, but we will walk through it step-by-step and you'll quickly get the hang of it.