diff --git a/docs/_interface/JavaScript-Console.md b/docs/_interface/JavaScript-Console.md index db4e49d0f8..eff5ed87e5 100644 --- a/docs/_interface/JavaScript-Console.md +++ b/docs/_interface/JavaScript-Console.md @@ -128,9 +128,9 @@ geth attach --exec eth.blockNumber The same syntax can be used to execute a local script file with more complex statements on a remote node over http, for example: ```shell -geth attach http://geth.example.org:8545 --exec 'loadScript("/tmp/checkbalances.js")' +geth attach --exec 'loadScript("/tmp/checkbalances.js")' http://geth.example.org:8545 -geth attach http://geth.example.org:8545 --jspath "/tmp" --exec 'loadScript("checkbalances.js")' +geth attach --jspath "/tmp" --exec 'loadScript("checkbalances.js")' http://geth.example.org:8545 ``` The `--jspath` flag is used to set a library directory for the Javascript scripts. Any parameters passed to `loadScript()` diff --git a/docs/_interface/Private-Network.md b/docs/_interface/Private-Network.md index 87d4ea89fc..c81899e2d7 100644 --- a/docs/_interface/Private-Network.md +++ b/docs/_interface/Private-Network.md @@ -175,7 +175,7 @@ geth --datadir data --networkid 15 --nat extip:172.16.254.4 The 'node record' of the bootnode can be extracted using the JS console: ```shell -geth attach data/geth.ipc --exec admin.nodeInfo.enr +geth attach --exec admin.nodeInfo.enr data/geth.ipc ``` This command should print a base64 string such as the following example. Other nodes will use the information contained in the bootstrap node record to connect to the peer-to-peer network. @@ -206,7 +206,7 @@ geth --datadir data2 --networkid 12345 --port 30305 --bootnodes